@jsenv/plugin-commonjs 1.0.6 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-commonjs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "./main.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@jsenv/filesystem": "4.1.
|
|
16
|
+
"@jsenv/filesystem": "4.1.6",
|
|
17
17
|
"@jsenv/log": "3.3.1",
|
|
18
18
|
"@jsenv/url-meta": "7.0.0",
|
|
19
|
-
"@jsenv/urls": "1.2.
|
|
20
|
-
"@rollup/plugin-commonjs": "
|
|
21
|
-
"@rollup/plugin-json": "
|
|
22
|
-
"@rollup/plugin-node-resolve": "
|
|
23
|
-
"@rollup/plugin-replace": "
|
|
19
|
+
"@jsenv/urls": "1.2.8",
|
|
20
|
+
"@rollup/plugin-commonjs": "23.0.2",
|
|
21
|
+
"@rollup/plugin-json": "5.0.1",
|
|
22
|
+
"@rollup/plugin-node-resolve": "15.0.1",
|
|
23
|
+
"@rollup/plugin-replace": "5.0.1",
|
|
24
24
|
"cjs-module-lexer": "1.2.2",
|
|
25
25
|
"is-valid-identifier": "2.0.2",
|
|
26
26
|
"resolve": "1.22.1",
|
|
27
|
-
"rollup": "2.
|
|
27
|
+
"rollup": "3.2.5",
|
|
28
28
|
"rollup-plugin-node-globals": "1.4.0",
|
|
29
|
-
"rollup-plugin-polyfill-node": "0.
|
|
29
|
+
"rollup-plugin-polyfill-node": "0.11.0",
|
|
30
30
|
"vm2": "3.9.11"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
package/src/cjs_to_esm_raw.js
CHANGED
|
@@ -97,7 +97,6 @@ export const commonJsToJsModuleRaw = async ({
|
|
|
97
97
|
const { rollup } = await import("rollup")
|
|
98
98
|
const rollupBuild = await rollup({
|
|
99
99
|
input: sourceFilePath,
|
|
100
|
-
inlineDynamicImports: true,
|
|
101
100
|
external,
|
|
102
101
|
plugins: [
|
|
103
102
|
nodeResolveRollupPlugin,
|
|
@@ -127,7 +126,7 @@ export const commonJsToJsModuleRaw = async ({
|
|
|
127
126
|
onwarn: (warning) => {
|
|
128
127
|
if (
|
|
129
128
|
warning.code === "UNRESOLVED_IMPORT" &&
|
|
130
|
-
warning.
|
|
129
|
+
warning.id.endsWith("?commonjs-external")
|
|
131
130
|
) {
|
|
132
131
|
return
|
|
133
132
|
}
|
|
@@ -153,6 +152,7 @@ export const commonJsToJsModuleRaw = async ({
|
|
|
153
152
|
})
|
|
154
153
|
const abstractDirUrl = new URL("./dist/", sourceFileUrl) // to help rollup generate property sourcemap paths
|
|
155
154
|
const generateOptions = {
|
|
155
|
+
inlineDynamicImports: true,
|
|
156
156
|
// https://rollupjs.org/guide/en#output-format
|
|
157
157
|
format: "esm",
|
|
158
158
|
// entryFileNames: `./[name].js`,
|