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:
Sebastian Markbåge
2020-05-28 15:56:34 -07:00
committed by GitHub
parent 60afa3c117
commit 76f157e3dd
7 changed files with 89 additions and 17 deletions

View File

@@ -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: