mirror of
https://github.com/zhigang1992/server-components-demo.git
synced 2026-01-12 17:52:28 +08:00
add cross-env to set NODE_ENV on windows and fix build on windows (#18)
* add cross-env to set NODE_ENV on windows and fix build on windows * Update package-lock.json * Update api.server.js * Update package.json Co-authored-by: Ahsan Sohail (213979) <AhSohail@KHI-ICX-AHSANS> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@ register();
|
||||
const babelRegister = require('@babel/register');
|
||||
|
||||
babelRegister({
|
||||
ignore: [/\/(build|server|node_modules)\//],
|
||||
ignore: [/[\\\/](build|server|node_modules)[\\\/]/],
|
||||
presets: [['react-app', {runtime: 'automatic'}]],
|
||||
plugins: ['@babel/transform-modules-commonjs'],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user