mirror of https://gitee.com/antv-l7/antv-l7
fix: rollup
This commit is contained in:
parent
0e5aad2b12
commit
991ee533af
|
@ -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' ]
|
||||||
|
|
Loading…
Reference in New Issue