Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
1846689910 committed May 20, 2019
1 parent d56f46c commit e530a08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = function(options) {
const { options: babelLoaderOptions = {}, ...rest } = archetype.babel.extendLoader;
const isProduction =
process.env.BABEL_ENV === "production" || process.env.NODE_ENV === "production";
const isDevelopment = process.env.NODE_ENV === "development";
const getBabelrcClient = () => {
const babelrcClient = JSON.parse(
Fs.readFileSync(require.resolve("../../babel/babelrc-client-multitargets"))
Expand All @@ -26,7 +25,7 @@ module.exports = function(options) {
targets,
useBuiltIns: "entry",
corejs: "2",
modules: isProduction || (isDevelopment && target !== "default") ? false : "commonjs"
modules: isProduction ? false : "commonjs"
}
]);
babelrcClient.presets = babelrcClient.presets.concat(presets);
Expand Down
4 changes: 1 addition & 3 deletions packages/electrode-archetype-react-app/arch-clap.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,6 @@ Individual .babelrc files were generated for you in src/client and src/server
"cov-frontend-85": () => checkFrontendCov("85"),
"cov-frontend-95": () => checkFrontendCov("95"),

"dev-target-es6": () => setEnvTarget("es6"),

debug: ["build-dev-static", "server-debug"],
devbrk: ["dev --inspect-brk"],
dev: {
Expand All @@ -688,7 +686,7 @@ Individual .babelrc files were generated for you in src/client and src/server
"dev-es6": {
desc:
"Start your app with watch in development mode with webpack-dev-server with ENV_TARGET=es6",
task: ["dev-target-es6", "dev"]
task: ["dev --target=es6"]
},

"dev-static": {
Expand Down

0 comments on commit e530a08

Please sign in to comment.