js:pass the es5 runtime

This commit is contained in:
pengfei.zhou
2020-01-17 14:55:39 +08:00
committed by osborn
parent 83a9b79073
commit 972550f668
15 changed files with 16433 additions and 157 deletions

View File

@@ -49,41 +49,41 @@ export default [
}
},
// {
// input: "lib-es5/index.runtime.es5.js",
// output: {
// name: "doric",
// format: "iife",
// file: "bundle/doric-sandbox.es5.js",
// },
// plugins: [
// resolve({ mainFields: ["jsnext"] }),
// commonjs(),
// buble({
// transforms: { dangerousForOf: true }
// }),
// ],
// onwarn: function (warning) {
// if (warning.code === 'THIS_IS_UNDEFINED') { return; }
// console.warn(warning.message);
// }
// },
// {
// input: "lib-es5/index.es5.js",
// output: {
// format: "cjs",
// file: "bundle/doric-lib.es5.js",
// },
// plugins: [
// resolve({ mainFields: ["jsnext"] }),
// buble({
// transforms: { dangerousForOf: true }
// }),
// ],
// external: ['reflect-metadata'],
// onwarn: function (warning) {
// if (warning.code === 'THIS_IS_UNDEFINED') { return; }
// console.warn(warning.message);
// }
// },
{
input: "lib-es5/index.runtime.es5.js",
output: {
name: "doric",
format: "iife",
file: "bundle/doric-sandbox.es5.js",
},
plugins: [
resolve({ mainFields: ["jsnext"] }),
commonjs(),
buble({
transforms: { dangerousForOf: true }
}),
],
onwarn: function (warning) {
if (warning.code === 'THIS_IS_UNDEFINED') { return; }
console.warn(warning.message);
}
},
{
input: "lib-es5/index.js",
output: {
format: "cjs",
file: "bundle/doric-lib.es5.js",
},
plugins: [
resolve({ mainFields: ["jsnext"] }),
buble({
transforms: { dangerousForOf: true }
}),
],
external: ['reflect-metadata'],
onwarn: function (warning) {
if (warning.code === 'THIS_IS_UNDEFINED') { return; }
console.warn(warning.message);
}
},
]