Skip to content

Commit

Permalink
chore: use babel7 in the compressor command
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwang44 committed Apr 6, 2024
1 parent 1af235f commit d680271
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/pycontw2016/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,16 @@ def node_bin(name):
COMPRESS_ES6_COMPILER_CMD = (
'export NODE_PATH="{paths}" && '
'{browserify_bin} "{infile}" -o "{outfile}" '
'-t [ "{node_modules}/babelify" '
'--presets="{node_modules}/babel-preset-env,'
'{node_modules}/babel-preset-stage-2" ]'
'-t [ '
'"{node_modules}/babelify" '
'--presets [ "@babel/preset-env" ] '
'--plugins [ '
'@babel/plugin-proposal-function-sent '
'@babel/plugin-proposal-throw-expressions '
'@babel/plugin-syntax-dynamic-import '
'@babel/plugin-syntax-import-meta '
'@babel/plugin-transform-class-properties ] '
']'
)

COMPRESS_NODE_SASS_BIN = node_bin('node-sass')
Expand Down

0 comments on commit d680271

Please sign in to comment.