Skip to content

Commit 04e473a

Browse files
authored
Merge pull request #129 from probablyup/disable-up
disable "uglifyPure" mode by default
2 parents 66c998b + 0bf071b commit 04e473a

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)