g6/.torch.compile.opts.js

27 lines
489 B
JavaScript
Raw Normal View History

2018-06-05 23:58:10 +08:00
module.exports = {
babelrc: {
plugins: [
2018-09-11 17:32:02 +08:00
'@babel/plugin-proposal-object-rest-spread',
2018-06-14 11:50:35 +08:00
'transform-remove-strict-mode',
[
"module-resolver",
{
"alias": {
'@antv/g6': './src/index'
},
}
],
2018-06-05 23:58:10 +08:00
],
presets: [
2018-09-11 17:32:02 +08:00
"@babel/preset-env",
2018-06-05 23:58:10 +08:00
],
2018-06-14 11:50:35 +08:00
sourceMaps: 'inline',
2018-06-05 23:58:10 +08:00
},
extensions: ['.js'],
include: [
'src/**/*.js',
'plugins/**/*.js',
2018-06-05 23:58:10 +08:00
],
2018-09-13 16:50:46 +08:00
exclude: /(node_modules|bower_components)/
2018-09-11 17:32:02 +08:00
}