Skip to content

Commit aedef74

Browse files
committed
feat(alita): remove __source props in production !
1 parent 731e27c commit aedef74

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/index.ts

+7
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ if (options._.includes('init')) {
9595
}
9696

9797
conf.dev = !!options.dev
98+
99+
if (conf.dev) {
100+
process.env.NODE_ENV = "development"
101+
} else {
102+
process.env.NODE_ENV = "production"
103+
}
104+
98105
conf.analyzer = !!options.analyzer
99106

100107
const DEFAULTCONFIG = {

0 commit comments

Comments
 (0)