chore: support require without default again

This commit is contained in:
surunzi
2019-11-04 18:33:57 +08:00
parent fcc223ee34
commit 6b594086d4
4 changed files with 258 additions and 260 deletions

View File

@@ -26,6 +26,7 @@ module.exports = {
output: {
path: path.resolve(__dirname, '../'),
publicPath: '/assets/',
library: 'eruda',
libraryTarget: 'umd'
},
module: {
@@ -43,7 +44,7 @@ module.exports = {
},
{
test: /\.js$/,
exclude: /node_modules/,
exclude: /node_modules|index\.js/,
use: [
{
loader: 'babel-loader',