fix: rollup

This commit is contained in:
thinkinggis 2021-07-03 23:00:24 +08:00
parent 0e5aad2b12
commit 991ee533af
1 changed files with 5 additions and 5 deletions

View File

@ -43,11 +43,11 @@ module.exports = [
entries: [ entries: [
{ {
find: /^@antv\/l7-(.*)/, find: /^@antv\/l7-(.*)/,
replacement: resolveFile('packages/$1/src'), replacement: resolveFile('packages/$1/src')
}, },
{ {
find: /^@antv\/l7$/, find: /^@antv\/l7$/,
replacement: resolveFile('packages/l7/src'), replacement: resolveFile('packages/l7/src')
} }
] ]
} }
@ -72,7 +72,7 @@ module.exports = [
commonjs({ commonjs({
namedExports: { namedExports: {
eventemitter3: [ 'EventEmitter' ], eventemitter3: [ 'EventEmitter' ],
// inversify: ['inject','injectable','postConstruct','Container','decorate','interfaces'], inversify: [ 'inject', 'injectable', 'postConstruct', 'Container', 'decorate', 'interfaces' ],
// @see https://github.com/rollup/rollup-plugin-commonjs/issues/266 // @see https://github.com/rollup/rollup-plugin-commonjs/issues/266
lodash: [ lodash: [
'isNil', 'isNil',
@ -87,8 +87,8 @@ module.exports = [
] ]
}, },
dynamicRequireTargets: [ dynamicRequireTargets: [
'node_modules/inversify/lib/syntax/binding_{on,when}_syntax.js', 'node_modules/inversify/lib/syntax/binding_{on,when}_syntax.js'
], ]
}), }),
babel({ babel({
extensions: [ '.js', '.ts' ] extensions: [ '.js', '.ts' ]