Skip to content

Commit 0bf071b

Browse files
committed
disable "uglifyPure" mode by default
unfortunately this feature seems to dramatically inflate the amount of time babel takes to process files... perhaps there is an unintended loop happening or something of the like
1 parent 66c998b commit 0bf071b

File tree

3 files changed

+3
-1
lines changed
  • src/utils
  • test/fixtures
    • 20-annotate-styled-calls-with-uglify-pure-comments
    • 21-annotate-keyframes-with-uglify-pure-comments

3 files changed

+3
-1
lines changed

src/utils/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export const useFileName = (state) =>getOption(state, 'fileName')
88
export const useMinify = (state) => getOption(state, 'minify')
99
export const useCSSPreprocessor = (state) => getOption(state, 'preprocess', false) // EXPERIMENTAL
1010
export const useTranspileTemplateLiterals = (state) => getOption(state, 'transpileTemplateLiterals')
11-
export const useUglifyPure = (state) => getOption(state, 'uglifyPure')
11+
export const useUglifyPure = (state) => getOption(state, 'uglifyPure', false)

test/fixtures/20-annotate-styled-calls-with-uglify-pure-comments/.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"fileName": false,
66
"transpileTemplateLiterals": false,
77
"preprocess": false,
8+
"uglifyPure": true
89
}]
910
]
1011
}

test/fixtures/21-annotate-keyframes-with-uglify-pure-comments/.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
["../../../src", {
44
"preprocess": true,
55
"ssr": true,
6+
"uglifyPure": true
67
}]
78
]
89
}

0 commit comments

Comments
 (0)