This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch next-npm-env
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/next-npm-env by this push:
new 7fea331 chore(prepublish): fix __DEV__ not transformed in esm build
7fea331 is described below
commit 7fea331f5548f44c86e28620cc8b819a0ec917ac
Author: pissang <[email protected]>
AuthorDate: Tue Jul 28 13:48:40 2020 +0800
chore(prepublish): fix __DEV__ not transformed in esm build
---
build/pre-publish.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/build/pre-publish.js b/build/pre-publish.js
index dcc6ccc..56bcbe4 100644
--- a/build/pre-publish.js
+++ b/build/pre-publish.js
@@ -121,9 +121,7 @@ const compileWorkList = [
transformOptions: {
filesGlobby: {patterns: ['**/*.js'], cwd: tmpDir},
preamble: preamble.js,
- // esm do not remove DEV. Keep it them same with
- // the previous state before migrate to ts.
- transformDEV: false
+ transformDEV: true
},
before: async function () {
fsExtra.removeSync(tmpDir);
@@ -176,7 +174,7 @@ const compileWorkList = [
transformOptions: {
filesGlobby: {patterns: ['**/*.js'], cwd: extensionESMDir},
preamble: preamble.js,
- transformDEV: false
+ transformDEV: true
},
before: async function () {
fsExtra.removeSync(extensionESMDir);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]