rollup 2.45.0 → 2.47.0
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 +43 -0
- package/dist/bin/rollup +3 -3
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +197 -132
- package/dist/es/shared/watch.js +3 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.d.ts +2 -0
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +8 -18
- package/dist/shared/mergeOptions.js +3 -2
- package/dist/shared/rollup.js +187 -121
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +2 -3
package/dist/rollup.d.ts
CHANGED
|
@@ -649,6 +649,7 @@ export interface OutputOptions {
|
|
|
649
649
|
preferConst?: boolean;
|
|
650
650
|
preserveModules?: boolean;
|
|
651
651
|
preserveModulesRoot?: string;
|
|
652
|
+
sanitizeFileName?: boolean | ((fileName: string) => string);
|
|
652
653
|
sourcemap?: boolean | 'inline' | 'hidden';
|
|
653
654
|
sourcemapExcludeSources?: boolean;
|
|
654
655
|
sourcemapFile?: string;
|
|
@@ -693,6 +694,7 @@ export interface NormalizedOutputOptions {
|
|
|
693
694
|
preferConst: boolean;
|
|
694
695
|
preserveModules: boolean;
|
|
695
696
|
preserveModulesRoot: string | undefined;
|
|
697
|
+
sanitizeFileName: (fileName: string) => string;
|
|
696
698
|
sourcemap: boolean | 'inline' | 'hidden';
|
|
697
699
|
sourcemapExcludeSources: boolean;
|
|
698
700
|
sourcemapFile: string | undefined;
|
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.47.0
|
|
4
|
+
Tue, 04 May 2021 05:02:40 GMT - commit 6cc9d6b5137dd80fef9618e97471f89f8fbc54ad
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -157,13 +157,7 @@ const immediateHandlers = {
|
|
|
157
157
|
},
|
|
158
158
|
MISSING_NODE_BUILTINS: warning => {
|
|
159
159
|
title(`Missing shims for Node.js built-ins`);
|
|
160
|
-
|
|
161
|
-
? `'${warning.modules[0]}'`
|
|
162
|
-
: `${warning
|
|
163
|
-
.modules.slice(0, -1)
|
|
164
|
-
.map((name) => `'${name}'`)
|
|
165
|
-
.join(', ')} and '${warning.modules.slice(-1)}'`;
|
|
166
|
-
stderr(`Creating a browser bundle that depends on ${detail}. You might need to include https://github.com/ionic-team/rollup-plugin-node-polyfills`);
|
|
160
|
+
stderr(`Creating a browser bundle that depends on ${rollup.printQuotedStringList(warning.modules)}. You might need to include https://github.com/ionic-team/rollup-plugin-node-polyfills`);
|
|
167
161
|
}
|
|
168
162
|
};
|
|
169
163
|
const deferredHandlers = {
|
|
@@ -218,7 +212,7 @@ const deferredHandlers = {
|
|
|
218
212
|
NAMESPACE_CONFLICT(warnings) {
|
|
219
213
|
title(`Conflicting re-exports`);
|
|
220
214
|
for (const warning of warnings) {
|
|
221
|
-
stderr(
|
|
215
|
+
stderr(`"${bold(rollup.relativeId(warning.reexporter))}" re-exports "${warning.name}" from both "${rollup.relativeId(warning.sources[0])}" and "${rollup.relativeId(warning.sources[1])}" (will be ignored)`);
|
|
222
216
|
}
|
|
223
217
|
},
|
|
224
218
|
NON_EXISTENT_EXPORT(warnings) {
|
|
@@ -253,14 +247,10 @@ const deferredHandlers = {
|
|
|
253
247
|
SOURCEMAP_BROKEN(warnings) {
|
|
254
248
|
title(`Broken sourcemap`);
|
|
255
249
|
info('https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect');
|
|
256
|
-
const plugins =
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
.map(p => `'${p}'`)
|
|
261
|
-
.join(', ')} and '${plugins.slice(-1)}')`
|
|
262
|
-
: ` (such as '${plugins[0]}')`;
|
|
263
|
-
stderr(`Plugins that transform code${detail} should generate accompanying sourcemaps`);
|
|
250
|
+
const plugins = [
|
|
251
|
+
...new Set(warnings.map(warning => warning.plugin).filter(Boolean))
|
|
252
|
+
];
|
|
253
|
+
stderr(`Plugins that transform code (such as ${rollup.printQuotedStringList(plugins)}) should generate accompanying sourcemaps`);
|
|
264
254
|
},
|
|
265
255
|
THIS_IS_UNDEFINED(warnings) {
|
|
266
256
|
title('`this` has been rewritten to `undefined`');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.47.0
|
|
4
|
+
Tue, 04 May 2021 05:02:40 GMT - commit 6cc9d6b5137dd80fef9618e97471f89f8fbc54ad
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -155,6 +155,7 @@ function mergeOutputOptions(config, overrides, warn) {
|
|
|
155
155
|
preferConst: getOption('preferConst'),
|
|
156
156
|
preserveModules: getOption('preserveModules'),
|
|
157
157
|
preserveModulesRoot: getOption('preserveModulesRoot'),
|
|
158
|
+
sanitizeFileName: getOption('sanitizeFileName'),
|
|
158
159
|
sourcemap: getOption('sourcemap'),
|
|
159
160
|
sourcemapExcludeSources: getOption('sourcemapExcludeSources'),
|
|
160
161
|
sourcemapFile: getOption('sourcemapFile'),
|