parent
1683dd77d1
commit
f6942f17ee
@ -1,5 +1,8 @@
|
|||||||
import asdf, {myFunc2 as wee} from './mylib.js'
|
import asdf, {myFunc2 as wee, Foo} from './mylib.js'
|
||||||
|
|
||||||
|
var a = new Foo();
|
||||||
|
|
||||||
|
a.bar();
|
||||||
asdf();
|
asdf();
|
||||||
wee();
|
wee();
|
||||||
console.log('awesome');
|
console.log('awesome');
|
||||||
|
|||||||
@ -1,6 +1,19 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
entry: './js/index.js',
|
entry: './js/index.js',
|
||||||
output: {
|
output: {
|
||||||
filename: 'dist/bundle.js'
|
filename: 'dist/bundle.js'
|
||||||
}
|
},
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
test: /\.(js|jsx)$/,
|
||||||
|
use: {
|
||||||
|
loader: 'babel-loader',
|
||||||
|
options: {
|
||||||
|
presets: ["es2015"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in new issue