@lark-apaas/fullstack-rspack-preset 0.1.1 → 0.1.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/preset.js +1 -1
- package/package.json +1 -1
package/lib/preset.js
CHANGED
|
@@ -124,7 +124,7 @@ function createRecommendRspackConfig(options) {
|
|
|
124
124
|
}),
|
|
125
125
|
new core_1.default.DefinePlugin({
|
|
126
126
|
'process.env.NODE_ENV': JSON.stringify(isDev ? 'development' : 'production'),
|
|
127
|
-
'process.env.runtimeMode': 'fullstack',
|
|
127
|
+
'process.env.runtimeMode': JSON.stringify('fullstack'),
|
|
128
128
|
'process.env.CLIENT_BASE_PATH': JSON.stringify(clientBasePath),
|
|
129
129
|
// FIXME:安全漏洞,会读取到服务路径,不应该在客户端代码中使用
|
|
130
130
|
'process.env.CWD': JSON.stringify(process.cwd()),
|