-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update rollup to latest, switch to terser from uglifyjs
- Loading branch information
1 parent
208e5ea
commit be26c5d
Showing
5 changed files
with
740 additions
and
568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,38 @@ | ||
var includePaths = require('rollup-plugin-includepaths'); | ||
var commonjs = require('rollup-plugin-commonjs'); | ||
var nodeResolve = require('rollup-plugin-node-resolve'); | ||
import nodeResolve from '@rollup/plugin-node-resolve'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import terser from '@rollup/plugin-terser'; | ||
|
||
module.exports = { | ||
export default { | ||
input: './dist/index.js', | ||
output: { | ||
name: 'AwayflAvm1', | ||
sourcemap: true, | ||
format: 'umd', | ||
file: './bundle/awayfl-avm2.umd.js', | ||
name: 'AwayflAvm2', | ||
globals: { | ||
'@awayfl/swf-loader': 'AwayflSwfLoader', | ||
'@awayjs/core': 'AwayjsCore', | ||
'@awayjs/graphics': 'AwayjsGraphics', | ||
'@awayjs/scene': 'AwayjsScene', | ||
'@awayjs/stage': 'AwayjsStage', | ||
'@awayjs/view': 'AwayjsView', | ||
'@awayjs/renderer': 'AwayjsRenderer', | ||
'@awayjs/graphics': 'AwayjsGraphics', | ||
'@awayjs/materials': 'AwayjsMaterials', | ||
'@awayjs/scene': 'AwayjsScene' | ||
}, | ||
sourcemap: true, | ||
format: 'umd', | ||
file: './bundle/awayfl-avm2.umd.js' | ||
}, | ||
external: [ | ||
'@awayfl/swf-loader', | ||
'@awayjs/core', | ||
'@awayjs/graphics', | ||
'@awayjs/scene', | ||
'@awayjs/stage', | ||
'@awayjs/view', | ||
'@awayjs/renderer', | ||
'@awayjs/graphics', | ||
'@awayjs/materials', | ||
'@awayjs/scene' | ||
], | ||
plugins: [ | ||
nodeResolve({ | ||
jsnext: true, | ||
main: true, | ||
module: true | ||
}), | ||
commonjs({ | ||
namedExports: { | ||
'blocks': './node_modules/xregexp/tools/output/blocks.js' | ||
} | ||
}) | ||
nodeResolve(), | ||
commonjs(), | ||
terser(), | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.