add require module

This commit is contained in:
pengfei.zhou
2019-07-18 18:29:47 +08:00
parent 13c5719af1
commit 723c5455ab
9 changed files with 88 additions and 24 deletions

View File

@@ -9,7 +9,7 @@ export default [
output: {
name: "hego",
format: "iife",
file: "bundle/sandbox.js",
file: "bundle/hego-sandbox.js",
},
sourceMap: true,
plugins: [
@@ -21,12 +21,11 @@ export default [
input: "build/index.js",
output: {
format: "cjs",
file: "bundle/bundle.js",
file: "bundle/hego-lib.js",
},
sourceMap: true,
plugins: [
resolve({ jsnext: true, main: true }),
commonjs()
]
},
{