rollup 2.33.2 → 2.33.3
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 +10 -0
- package/README.md +2 -2
- 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 +14 -13
- 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 +2 -2
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +14 -13
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +1 -1
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.33.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.33.3
|
|
4
|
+
Wed, 18 Nov 2020 05:54:45 GMT - commit 07868398277174501db6703d0bcdfc6b89d6fa6e
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -19,7 +19,7 @@ function _interopNamespaceDefaultOnly(e) {
|
|
|
19
19
|
return {__proto__: null, 'default': e};
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
var version = "2.33.
|
|
22
|
+
var version = "2.33.3";
|
|
23
23
|
|
|
24
24
|
function ensureArray(items) {
|
|
25
25
|
if (Array.isArray(items)) {
|
|
@@ -4970,6 +4970,16 @@ function getInteropBlock(dependencies, varOrConst, interop, externalLiveBindings
|
|
|
4970
4970
|
return `${getHelpersBlock(neededInteropHelpers, accessedGlobals, _, n, s, t, externalLiveBindings, freeze, namespaceToStringTag)}${interopStatements.length > 0 ? `${interopStatements.join(n)}${n}${n}` : ''}`;
|
|
4971
4971
|
}
|
|
4972
4972
|
|
|
4973
|
+
// AMD resolution will only respect the AMD baseUrl if the .js extension is omitted.
|
|
4974
|
+
// The assumption is that this makes sense for all relative ids:
|
|
4975
|
+
// https://requirejs.org/docs/api.html#jsfiles
|
|
4976
|
+
function removeExtensionFromRelativeAmdId(id) {
|
|
4977
|
+
if (id[0] === '.' && id.endsWith('.js')) {
|
|
4978
|
+
return id.slice(0, -3);
|
|
4979
|
+
}
|
|
4980
|
+
return id;
|
|
4981
|
+
}
|
|
4982
|
+
|
|
4973
4983
|
const builtins$1 = {
|
|
4974
4984
|
assert: true,
|
|
4975
4985
|
buffer: true,
|
|
@@ -5010,15 +5020,6 @@ function warnOnBuiltins(warn, dependencies) {
|
|
|
5010
5020
|
});
|
|
5011
5021
|
}
|
|
5012
5022
|
|
|
5013
|
-
// AMD resolution will only respect the AMD baseUrl if the .js extension is omitted.
|
|
5014
|
-
// The assumption is that this makes sense for all relative ids:
|
|
5015
|
-
// https://requirejs.org/docs/api.html#jsfiles
|
|
5016
|
-
function removeExtensionFromRelativeAmdId(id) {
|
|
5017
|
-
if (id[0] === '.' && id.endsWith('.js')) {
|
|
5018
|
-
return id.slice(0, -3);
|
|
5019
|
-
}
|
|
5020
|
-
return id;
|
|
5021
|
-
}
|
|
5022
5023
|
function amd(magicString, { accessedGlobals, dependencies, exports, hasExports, indentString: t, intro, isEntryFacade, isModuleFacade, namedExportsMode, outro, varOrConst, warn }, { amd: { define: amdDefine, id: amdId }, compact, esModule, externalLiveBindings, freeze, interop, namespaceToStringTag, strict }) {
|
|
5023
5024
|
warnOnBuiltins(warn, dependencies);
|
|
5024
5025
|
const deps = dependencies.map(m => `'${removeExtensionFromRelativeAmdId(m.id)}'`);
|
|
@@ -5813,7 +5814,7 @@ function umd(magicString, { accessedGlobals, dependencies, exports, hasExports,
|
|
|
5813
5814
|
});
|
|
5814
5815
|
}
|
|
5815
5816
|
warnOnBuiltins(warn, dependencies);
|
|
5816
|
-
const amdDeps = dependencies.map(m => `'${m.id}'`);
|
|
5817
|
+
const amdDeps = dependencies.map(m => `'${removeExtensionFromRelativeAmdId(m.id)}'`);
|
|
5817
5818
|
const cjsDeps = dependencies.map(m => `require('${m.id}')`);
|
|
5818
5819
|
const trimmedImports = trimEmptyImports(dependencies);
|
|
5819
5820
|
const globalDeps = trimmedImports.map(module => globalProp(module.globalName, globalVar));
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED