js-framework rollup config upgrade

This commit is contained in:
王劲鹏 2019-11-11 16:53:04 +08:00
parent 651f28a226
commit ee35011ba0

View File

@ -11,7 +11,7 @@ export default [
file: "bundle/doric-sandbox.js", file: "bundle/doric-sandbox.js",
}, },
plugins: [ plugins: [
resolve({ jsnext: true, main: true }), resolve({ mainFields: ["jsnext"] }),
] ]
}, },
{ {
@ -21,7 +21,7 @@ export default [
file: "bundle/doric-lib.js", file: "bundle/doric-lib.js",
}, },
plugins: [ plugins: [
resolve({ jsnext: true, main: true }), resolve({ mainFields: ["jsnext"] }),
], ],
external: ['reflect-metadata'] external: ['reflect-metadata']
}, },
@ -32,7 +32,7 @@ export default [
file: "bundle/doric-vm.js", file: "bundle/doric-vm.js",
}, },
plugins: [ plugins: [
resolve({ jsnext: true, main: true }), resolve({ mainFields: ["jsnext"] }),
], ],
external: ['ws'] external: ['ws']
}, },