mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-24 09:48:37 +08:00
chore: support require without default again
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user