mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
41 lines
789 B
JavaScript
41 lines
789 B
JavaScript
var babelOptions = {
|
|
optional: ['es7.decorators'],
|
|
plugins: [
|
|
'./transformers/disable-define',
|
|
'angular2-annotations',
|
|
'type-assertion:after'
|
|
]
|
|
};
|
|
|
|
module.exports = {
|
|
entry: "./ionic/ionic",
|
|
output: {
|
|
path: __dirname,
|
|
filename: "ionic.bundle.js"
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.es6$/,
|
|
loader: "babel-loader?" + JSON.stringify(babelOptions)
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
loader: "babel-loader?" + JSON.stringify(babelOptions)
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'angular2': 'angular2/es6/dev',
|
|
'rtts_assert': 'rtts_assert/es6'
|
|
},
|
|
modulesDirectories: [
|
|
'ionic2',
|
|
'node_modules'
|
|
],
|
|
extensions: ['', '.js', '.es6']
|
|
}
|
|
};
|