rollup 2.18.0 → 2.18.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/CHANGELOG.md +12 -0
- package/dist/bin/rollup +2 -2
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +12 -5
- package/dist/es/shared/watch.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +17 -4
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +12 -5
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +2 -2
package/dist/es/rollup.js
CHANGED
package/dist/es/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.18.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.18.1
|
|
4
|
+
Fri, 26 Jun 2020 19:42:28 GMT - commit 1aeb23b23ef1aafe2edcbfd5c4062dd97186f700
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -13,7 +13,7 @@ import { createHash as createHash$1 } from 'crypto';
|
|
|
13
13
|
import { writeFile as writeFile$1, readdirSync, mkdirSync, readFile as readFile$1, lstatSync, realpathSync } from 'fs';
|
|
14
14
|
import { EventEmitter } from 'events';
|
|
15
15
|
|
|
16
|
-
var version = "2.18.
|
|
16
|
+
var version = "2.18.1";
|
|
17
17
|
|
|
18
18
|
var charToInteger = {};
|
|
19
19
|
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
@@ -7259,7 +7259,7 @@ class Import extends NodeBase {
|
|
|
7259
7259
|
if (namespaceExportName) {
|
|
7260
7260
|
const _ = options.compact ? '' : ' ';
|
|
7261
7261
|
const s = options.compact ? '' : ';';
|
|
7262
|
-
code.
|
|
7262
|
+
code.prependLeft(this.end, `.then(function${_}(n)${_}{${_}return n.${namespaceExportName}${s}${_}})`);
|
|
7263
7263
|
}
|
|
7264
7264
|
}
|
|
7265
7265
|
setExternalResolution(exportMode, resolution) {
|
|
@@ -9540,7 +9540,7 @@ class Module {
|
|
|
9540
9540
|
return error({
|
|
9541
9541
|
code: Errors.SYNTHETIC_NAMED_EXPORTS_NEED_DEFAULT,
|
|
9542
9542
|
id: this.id,
|
|
9543
|
-
message: `
|
|
9543
|
+
message: `Module "${relativeId(this.id)}" that is marked to have "syntheticNamedExports" needs a default export.`
|
|
9544
9544
|
});
|
|
9545
9545
|
}
|
|
9546
9546
|
return this.defaultExport;
|
|
@@ -10625,6 +10625,11 @@ class Chunk$1 {
|
|
|
10625
10625
|
for (const importer of module.includedDynamicImporters) {
|
|
10626
10626
|
if (!chunkModules.has(importer)) {
|
|
10627
10627
|
this.dynamicEntryModules.push(module);
|
|
10628
|
+
// Modules with synthetic exports need an artifical namespace for dynamic imports
|
|
10629
|
+
if (module.syntheticNamedExports) {
|
|
10630
|
+
module.namespace.include();
|
|
10631
|
+
this.exports.add(module.namespace);
|
|
10632
|
+
}
|
|
10628
10633
|
}
|
|
10629
10634
|
}
|
|
10630
10635
|
if (module.implicitlyLoadedAfter.size > 0) {
|
|
@@ -10742,6 +10747,8 @@ class Chunk$1 {
|
|
|
10742
10747
|
}
|
|
10743
10748
|
}
|
|
10744
10749
|
for (const module of this.dynamicEntryModules) {
|
|
10750
|
+
if (module.syntheticNamedExports)
|
|
10751
|
+
continue;
|
|
10745
10752
|
if (!this.facadeModule && this.canModuleBeFacade(module, exposedVariables)) {
|
|
10746
10753
|
this.facadeModule = module;
|
|
10747
10754
|
this.facadeChunkByModule.set(module, this);
|
package/dist/es/shared/watch.js
CHANGED
package/dist/loadConfigFile.js
CHANGED