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();
|
||||
wee();
|
||||
console.log('awesome');
|
||||
|
||||
@ -1,6 +1,19 @@
|
||||
module.exports = {
|
||||
entry: './js/index.js',
|
||||
output: {
|
||||
filename: 'dist/bundle.js'
|
||||
}
|
||||
entry: './js/index.js',
|
||||
output: {
|
||||
filename: 'dist/bundle.js'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.(js|jsx)$/,
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ["es2015"]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in new issue