mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
remove wip clutter
This commit is contained in:
@ -1,13 +0,0 @@
|
||||
var babel = require('babel-core');
|
||||
var t = babel.types;
|
||||
var Transformer = babel.Transformer;
|
||||
|
||||
module.exports = new Transformer('disable-define', {
|
||||
Identifier: function Identifier(node, parent, scope, file) {
|
||||
if (node.name === 'define') {
|
||||
// Advice from @t_wada. Not to change source map.
|
||||
// https://twitter.com/t_wada/status/582560881533304833
|
||||
node.name = '__def_';
|
||||
}
|
||||
}
|
||||
});
|
@ -1,40 +0,0 @@
|
||||
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']
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user