-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.js
More file actions
40 lines (38 loc) · 882 Bytes
/
Copy pathrollup.config.js
File metadata and controls
40 lines (38 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
var includePaths = require('rollup-plugin-includepaths');
module.exports = {
entry: './dist/index.js',
sourceMap: true,
format: 'umd',
moduleName: 'AwayjsView',
external: [
'@awayjs/core',
'@awayjs/graphics',
'@awayjs/materials',
'@awayjs/renderer',
'@awayjs/scene',
'@awayjs/stage',
'@awayjs/view',
'@awayjs/swf-viewer',
'@awayjs/player',
],
globals: {
'@awayjs/core': 'AwayjsCore',
'@awayjs/graphics': 'AwayjsGraphics',
'@awayjs/materials': 'AwayjsMaterials',
'@awayjs/renderer': 'AwayjsRenderer',
'@awayjs/scene': 'AwayjsScene',
'@awayjs/stage': 'AwayjsStage',
'@awayjs/swf-viewer': 'AwayjsSWFViewer',
'@awayjs/player': 'AwayjsPlayer',
'@awayjs/view': 'AwayjsView'
},
targets: [
{ dest: './bundle/as3web-flash.umd.js'}
],
plugins: [
includePaths({
include : {
"tslib": "./node_modules/tslib/tslib.es6.js"
}
}) ]
};