Turn on `--use-preload-plugins`

This commit is contained in:
Michael Droettboom 2018-06-23 08:28:34 -04:00
parent 7a916a34e1
commit c5597313a0
1 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,8 @@ def package_files(buildpath, srcpath, pkg, args):
'--js-output={}'.format(os.path.join(buildpath, name + '.js')), '--js-output={}'.format(os.path.join(buildpath, name + '.js')),
'--export-name=pyodide', '--export-name=pyodide',
'--exclude', '*.wasm.pre', '--exclude', '*.wasm.pre',
'--exclude', '__pycache__'], check=True) '--exclude', '__pycache__',
'--use-preload-plugins'], check=True)
subprocess.run([ subprocess.run([
'uglifyjs', 'uglifyjs',
os.path.join(buildpath, name + '.js'), os.path.join(buildpath, name + '.js'),