mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Add simple Node build (#19022)
The webpack plugin doesn't really need a separate prod and dev build. It also needs to be ES2015 otherwise we can't extend native classes.
This commit is contained in:
committed by
GitHub
parent
60afa3c117
commit
76f157e3dd
@@ -16,6 +16,7 @@ const {
|
||||
} = require('./utils');
|
||||
|
||||
const {
|
||||
NODE_ES2015,
|
||||
UMD_DEV,
|
||||
UMD_PROD,
|
||||
UMD_PROFILING,
|
||||
@@ -42,6 +43,8 @@ function getPackageName(name) {
|
||||
|
||||
function getBundleOutputPath(bundleType, filename, packageName) {
|
||||
switch (bundleType) {
|
||||
case NODE_ES2015:
|
||||
return `build/node_modules/${packageName}/cjs/${filename}`;
|
||||
case NODE_DEV:
|
||||
case NODE_PROD:
|
||||
case NODE_PROFILING:
|
||||
|
||||
Reference in New Issue
Block a user