Skip to content

Commit e29f5f4

Browse files
committed
fix: Revert to es5 code generation
Signed-off-by: Gordon Smith <[email protected]>
1 parent e23a2f2 commit e29f5f4

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@
105105
"url": "https://github.com/hpcc-systems/hpcc-js-wasm/issues"
106106
},
107107
"homepage": "https://github.com/hpcc-systems/hpcc-js-wasm#readme"
108-
}
108+
}

rollup.config.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const browserTpl = (input, umdOutput, esOutput) => ({
1414
sourcemap: true,
1515
name: pkg.name
1616
}, {
17-
file: esOutput,
17+
file: esOutput + ".js",
1818
format: "es",
1919
sourcemap: true
2020
}],
@@ -36,7 +36,7 @@ const nodeTpl = (input, cjsOutput, esOutput) => ({
3636
sourcemap: true,
3737
name: pkg.name
3838
}, {
39-
file: esOutput,
39+
file: esOutput + ".js",
4040
format: "es",
4141
sourcemap: true
4242
}],
@@ -60,12 +60,12 @@ const nodeTpl = (input, cjsOutput, esOutput) => ({
6060
});
6161

6262
export default [
63-
browserTpl("lib-es6/index", pkg.browser, pkg.module + ".js"),
64-
browserTpl("lib-es6/graphviz", "dist/graphviz.js", "dist/graphviz.es6.js"),
65-
browserTpl("lib-es6/expat", "dist/expat.js", "dist/expat.es6.js"),
66-
nodeTpl("lib-es6/index", pkg.main, pkg["module-node"] + ".js"),
67-
nodeTpl("lib-es6/graphviz", "dist/graphviz.node.js", "dist/graphviz.node.es6.js"),
68-
nodeTpl("lib-es6/expat", "dist/expat.node.js", "dist/expat.node.es6.js"),
69-
browserTpl("lib-es6/__tests__/index", "dist/test.js", "dist/test.es6.js"),
70-
nodeTpl("lib-es6/__tests__/index", "dist/test.node.js", "dist/test.node.es6.js")
63+
browserTpl("lib-es6/index", pkg.browser, pkg.module),
64+
browserTpl("lib-es6/graphviz", "dist/graphviz.js", "dist/graphviz.es6"),
65+
browserTpl("lib-es6/expat", "dist/expat.js", "dist/expat.es6"),
66+
nodeTpl("lib-es6/index", pkg.main, pkg["module-node"]),
67+
nodeTpl("lib-es6/graphviz", "dist/graphviz.node.js", "dist/graphviz.node.es6"),
68+
nodeTpl("lib-es6/expat", "dist/expat.node.js", "dist/expat.node.es6"),
69+
browserTpl("lib-es6/__tests__/index", "dist/test.js", "dist/test.es6"),
70+
nodeTpl("lib-es6/__tests__/index", "dist/test.node.js", "dist/test.node.es6")
7171
];

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"outDir": "./lib-umd",
55
"declarationDir": "./types",
66
"composite": true,
7-
"target": "es6",
7+
"target": "es5",
88
"module": "umd",
99
"moduleResolution": "node",
1010
"strict": true,
@@ -15,7 +15,8 @@
1515
},
1616
"lib": [
1717
"dom",
18-
"es6"
18+
"es5",
19+
"es6.Promise"
1920
],
2021
"types": [],
2122
"include": [

0 commit comments

Comments
 (0)