mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-04 12:47:14 +02:00
fix(v2): wrong modules path on windows (#1513)
* fix: wrong modules path on windows * use json stringify to escape string
This commit is contained in:
parent
1282df063c
commit
34d674cdf5
1 changed files with 2 additions and 2 deletions
|
@ -107,8 +107,8 @@ ${Object.keys(registry)
|
|||
.map(
|
||||
key => ` '${key}': {
|
||||
'importStatement': ${registry[key].importStatement},
|
||||
'module': '${registry[key].modulePath}',
|
||||
'webpack': require.resolveWeak('${registry[key].modulePath}'),
|
||||
'module': ${JSON.stringify(registry[key].modulePath)},
|
||||
'webpack': require.resolveWeak(${JSON.stringify(registry[key].modulePath)}),
|
||||
},`,
|
||||
)
|
||||
.join('\n')}};\n`,
|
||||
|
|
Loading…
Add table
Reference in a new issue