You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Controls what is returned when requiring an ES module from a CommonJS file. When using the `esmExternals` option, this will also apply to external modules. By default, this plugin will render those imports as namespace imports, i.e.
@@ -174,7 +174,7 @@ This is in line with how other bundlers handle this situation and is also the mo
174
174
175
175
var dep$1 =/*#__PURE__*/Object.freeze({
176
176
__proto__:null,
177
-
default: dep,
177
+
default: dep
178
178
});
179
179
180
180
console.log(dep$1.default);
@@ -205,7 +205,7 @@ For these situations, you can change Rollup's behaviour either globally or per m
205
205
enumerable:true,
206
206
get:function () {
207
207
return n[k];
208
-
},
208
+
}
209
209
}
210
210
);
211
211
});
@@ -287,9 +287,9 @@ export default {
287
287
output: {
288
288
file:'bundle.js',
289
289
format:'iife',
290
-
name:'MyModule',
290
+
name:'MyModule'
291
291
},
292
-
plugins: [resolve(), commonjs()],
292
+
plugins: [resolve(), commonjs()]
293
293
};
294
294
```
295
295
@@ -299,7 +299,7 @@ Symlinks are common in monorepos and are also created by the `npm link` command.
299
299
300
300
```js
301
301
commonjs({
302
-
include:/node_modules/,
302
+
include:/node_modules/
303
303
});
304
304
```
305
305
@@ -322,11 +322,11 @@ function cjsDetectionPlugin() {
322
322
moduleParsed({
323
323
id,
324
324
meta: {
325
-
commonjs: { isCommonJS },
326
-
},
325
+
commonjs: { isCommonJS }
326
+
}
327
327
}) {
328
328
console.log(`File ${id} is CommonJS: ${isCommonJS}`);
0 commit comments