@jsenv/plugin-commonjs 2.11.0 → 2.11.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": "2.11.0",
3
+ "version": "2.11.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/jsenv/core",
@@ -32,7 +32,6 @@
32
32
  "is-valid-identifier": "2.0.2",
33
33
  "resolve": "1.22.10",
34
34
  "rollup": "4.40.1",
35
- "rollup-plugin-node-globals": "1.4.0",
36
35
  "rollup-plugin-polyfill-node": "0.13.0"
37
36
  },
38
37
  "devDependencies": {
@@ -11,8 +11,6 @@ export const commonJsToJsModuleRaw = async ({
11
11
  replaceGlobalFilename = browsers,
12
12
  replaceGlobalDirname = browsers,
13
13
  replaceProcessEnvNodeEnv = browsers,
14
- replaceProcess = browsers,
15
- replaceBuffer = browsers,
16
14
  processEnvNodeEnv = process.env.NODE_ENV,
17
15
  replaceMap = {},
18
16
  convertBuiltinsToBrowser = browsers,
@@ -82,10 +80,6 @@ export const commonJsToJsModuleRaw = async ({
82
80
  requireReturnsDefault: "auto",
83
81
  });
84
82
 
85
- const { default: createNodeGlobalRollupPlugin } = await import(
86
- "rollup-plugin-node-globals"
87
- );
88
-
89
83
  const commonJsNamedExportsRollupPlugin = rollupPluginCommonJsNamedExports({
90
84
  logger,
91
85
  });
@@ -111,17 +105,6 @@ export const commonJsToJsModuleRaw = async ({
111
105
  replaceRollupPlugin,
112
106
  commonJsRollupPlugin,
113
107
  commonJsNamedExportsRollupPlugin,
114
- ...(replaceProcess || replaceBuffer
115
- ? [
116
- createNodeGlobalRollupPlugin({
117
- global: false, // handled by replaceMap
118
- dirname: false, // handled by replaceMap
119
- filename: false, // handled by replaceMap
120
- process: replaceProcess,
121
- buffer: replaceBuffer,
122
- }),
123
- ]
124
- : []),
125
108
  ...(convertBuiltinsToBrowser
126
109
  ? [
127
110
  rollupPluginNodePolyfills({