no bug - Correct some typos in the comments. a=typo-fix
[gecko.git] / third_party / js / PKI.js / make-esmodule-bundle.patch
blob3f0641b91e77da6c7984408288c343f865b14107
1 diff --git a/rollup.config.js b/rollup.config.js
2 index 8c8a7c2..b6e61c0 100644
3 --- a/rollup.config.js
4 +++ b/rollup.config.js
5 @@ -3,6 +3,7 @@ import fs from "fs";
6 import typescript from "rollup-plugin-typescript2";
7 import dts from "rollup-plugin-dts";
8 import pkg from "./package.json";
9 +import { nodeResolve } from '@rollup/plugin-node-resolve';
11 const LICENSE = fs.readFileSync("LICENSE", { encoding: "utf-8" });
12 const banner = [
13 @@ -12,7 +13,6 @@ const banner = [
14 "",
15 ].join("\n");
16 const input = "src/index.ts";
17 -const external = Object.keys(pkg.dependencies || {});
19 export default [
21 @@ -26,10 +26,10 @@ export default [
22 module: "ES2015",
23 removeComments: true,
25 - }
26 + },
27 }),
28 + nodeResolve(),
30 - external: [...external],
31 output: [
33 banner,
34 @@ -45,7 +45,6 @@ export default [
37 input,
38 - external: [...external],
39 plugins: [
40 dts({
41 tsconfig: path.resolve(__dirname, "./tsconfig.json")
42 @@ -58,4 +57,4 @@ export default [
46 -];
47 \ No newline at end of file
48 +];
49 diff --git a/tsconfig.json b/tsconfig.json
50 index ffd67ec..e72bdb6 100644
51 --- a/tsconfig.json
52 +++ b/tsconfig.json
53 @@ -1,7 +1,8 @@
55 "compilerOptions": {
56 - "target": "ES2019",
57 - "module": "CommonJS",
58 + "target": "ES6",
59 + "module": "ES6",
60 + "moduleResolution": "node",
61 "strict": true,
62 "importHelpers": true,
63 "noImplicitOverride": true,
64 @@ -11,4 +12,4 @@
65 "exclude": [
66 "build/*.ts"
69 \ No newline at end of file