rollup 3.0.0-2 → 3.0.0-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/LICENSE.md +0 -49
- package/README.md +2 -4
- package/dist/bin/rollup +6 -18
- package/dist/es/rollup.js +1 -1
- package/dist/es/shared/rollup.js +347 -322
- package/dist/es/shared/watch.js +1 -1
- package/dist/loadConfigFile.js +4 -2
- package/dist/rollup.d.ts +10 -18
- package/dist/rollup.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/loadConfigFile.js +31 -39
- package/dist/shared/mergeOptions.js +1 -1
- package/dist/shared/rollup.js +389 -321
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +1 -1
- package/package.json +21 -25
- package/dist/es/rollup.browser.js +0 -10
- package/dist/rollup.browser.js +0 -11
- package/dist/rollup.browser.js.map +0 -1
package/LICENSE.md
CHANGED
|
@@ -292,35 +292,6 @@ Repository: gulpjs/glob-parent
|
|
|
292
292
|
|
|
293
293
|
---------------------------------------
|
|
294
294
|
|
|
295
|
-
## hash.js
|
|
296
|
-
License: MIT
|
|
297
|
-
By: Fedor Indutny
|
|
298
|
-
Repository: git@github.com:indutny/hash.js
|
|
299
|
-
|
|
300
|
-
---------------------------------------
|
|
301
|
-
|
|
302
|
-
## inherits
|
|
303
|
-
License: ISC
|
|
304
|
-
Repository: git://github.com/isaacs/inherits
|
|
305
|
-
|
|
306
|
-
> The ISC License
|
|
307
|
-
>
|
|
308
|
-
> Copyright (c) Isaac Z. Schlueter
|
|
309
|
-
>
|
|
310
|
-
> Permission to use, copy, modify, and/or distribute this software for any
|
|
311
|
-
> purpose with or without fee is hereby granted, provided that the above
|
|
312
|
-
> copyright notice and this permission notice appear in all copies.
|
|
313
|
-
>
|
|
314
|
-
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
315
|
-
> REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
316
|
-
> FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
317
|
-
> INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
318
|
-
> LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
319
|
-
> OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
320
|
-
> PERFORMANCE OF THIS SOFTWARE.
|
|
321
|
-
|
|
322
|
-
---------------------------------------
|
|
323
|
-
|
|
324
295
|
## is-binary-path
|
|
325
296
|
License: MIT
|
|
326
297
|
By: Sindre Sorhus
|
|
@@ -454,26 +425,6 @@ Repository: https://github.com/rich-harris/magic-string
|
|
|
454
425
|
|
|
455
426
|
---------------------------------------
|
|
456
427
|
|
|
457
|
-
## minimalistic-assert
|
|
458
|
-
License: ISC
|
|
459
|
-
Repository: https://github.com/calvinmetcalf/minimalistic-assert.git
|
|
460
|
-
|
|
461
|
-
> Copyright 2015 Calvin Metcalf
|
|
462
|
-
>
|
|
463
|
-
> Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
464
|
-
> with or without fee is hereby granted, provided that the above copyright notice
|
|
465
|
-
> and this permission notice appear in all copies.
|
|
466
|
-
>
|
|
467
|
-
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
468
|
-
> REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
469
|
-
> FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
470
|
-
> INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
471
|
-
> LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
|
472
|
-
> OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
473
|
-
> PERFORMANCE OF THIS SOFTWARE.
|
|
474
|
-
|
|
475
|
-
---------------------------------------
|
|
476
|
-
|
|
477
428
|
## normalize-path
|
|
478
429
|
License: MIT
|
|
479
430
|
By: Jon Schlinkert, Blaine Bublitz
|
package/README.md
CHANGED
|
@@ -21,9 +21,7 @@
|
|
|
21
21
|
<a href="https://github.com/rollup/rollup/blob/master/LICENSE.md">
|
|
22
22
|
<img src="https://img.shields.io/npm/l/rollup.svg" alt="license">
|
|
23
23
|
</a>
|
|
24
|
-
|
|
25
|
-
<img src="https://david-dm.org/rollup/rollup/status.svg" alt="dependency status">
|
|
26
|
-
</a>
|
|
24
|
+
|
|
27
25
|
<a href='https://is.gd/rollup_chat?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge'>
|
|
28
26
|
<img src='https://img.shields.io/discord/466787075518365708?color=778cd1&label=chat' alt='Join the chat at https://is.gd/rollup_chat'>
|
|
29
27
|
</a>
|
|
@@ -37,7 +35,7 @@ Rollup is a module bundler for JavaScript which compiles small pieces of code in
|
|
|
37
35
|
|
|
38
36
|
## Quick Start Guide
|
|
39
37
|
|
|
40
|
-
Install with `npm install --global rollup`. Rollup can be used either through a [command line interface](https://rollupjs.org/#command-line-reference) with an optional configuration file
|
|
38
|
+
Install with `npm install --global rollup`. Rollup can be used either through a [command line interface](https://rollupjs.org/#command-line-reference) with an optional configuration file or else through its [JavaScript API](https://rollupjs.org/guide/en/#javascript-api). Run `rollup --help` to see the available options and parameters. The starter project templates, [rollup-starter-lib](https://github.com/rollup/rollup-starter-lib) and [rollup-starter-app](https://github.com/rollup/rollup-starter-app), demonstrate common configuration options, and more detailed instructions are available throughout the [user guide](https://rollupjs.org/).
|
|
41
39
|
|
|
42
40
|
### Commands
|
|
43
41
|
|
package/dist/bin/rollup
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/*
|
|
4
4
|
@license
|
|
5
5
|
Rollup.js v3.0.0-2
|
|
6
|
-
|
|
6
|
+
Sat, 30 Jul 2022 12:51:34 GMT - commit 41906cedefbc03640d6e8ca23ce6975f3bb5c6a1
|
|
7
7
|
|
|
8
8
|
https://github.com/rollup/rollup
|
|
9
9
|
|
|
@@ -1535,10 +1535,7 @@ async function build(inputOptions, warnings, silent = false) {
|
|
|
1535
1535
|
if (useStdout) {
|
|
1536
1536
|
const output = outputOptions[0];
|
|
1537
1537
|
if (output.sourcemap && output.sourcemap !== 'inline') {
|
|
1538
|
-
loadConfigFile_js.handleError(
|
|
1539
|
-
code: 'ONLY_INLINE_SOURCEMAPS',
|
|
1540
|
-
message: 'Only inline sourcemaps are supported when bundling to stdout.'
|
|
1541
|
-
});
|
|
1538
|
+
loadConfigFile_js.handleError(rollup.errOnlyInlineSourcemapsForStdout());
|
|
1542
1539
|
}
|
|
1543
1540
|
const { output: outputs } = await bundle.generate(output);
|
|
1544
1541
|
for (const file of outputs) {
|
|
@@ -1588,10 +1585,7 @@ async function getConfigPath(commandConfig) {
|
|
|
1588
1585
|
}
|
|
1589
1586
|
catch (err) {
|
|
1590
1587
|
if (err.code === 'MODULE_NOT_FOUND') {
|
|
1591
|
-
loadConfigFile_js.handleError(
|
|
1592
|
-
code: 'MISSING_EXTERNAL_CONFIG',
|
|
1593
|
-
message: `Could not resolve config file "${commandConfig}"`
|
|
1594
|
-
});
|
|
1588
|
+
loadConfigFile_js.handleError(rollup.errMissingExternalConfig(commandConfig));
|
|
1595
1589
|
}
|
|
1596
1590
|
throw err;
|
|
1597
1591
|
}
|
|
@@ -1623,10 +1617,7 @@ async function runRollup(command) {
|
|
|
1623
1617
|
let inputSource;
|
|
1624
1618
|
if (command._.length > 0) {
|
|
1625
1619
|
if (command.input) {
|
|
1626
|
-
loadConfigFile_js.handleError(
|
|
1627
|
-
code: 'DUPLICATE_IMPORT_OPTIONS',
|
|
1628
|
-
message: 'Either use --input, or pass input path as argument'
|
|
1629
|
-
});
|
|
1620
|
+
loadConfigFile_js.handleError(rollup.errDuplicateImportOptions());
|
|
1630
1621
|
}
|
|
1631
1622
|
inputSource = command._;
|
|
1632
1623
|
}
|
|
@@ -1675,10 +1666,7 @@ async function runRollup(command) {
|
|
|
1675
1666
|
}
|
|
1676
1667
|
if (command.failAfterWarnings && warnings.warningOccurred) {
|
|
1677
1668
|
warnings.flush();
|
|
1678
|
-
loadConfigFile_js.handleError(
|
|
1679
|
-
code: 'FAIL_AFTER_WARNINGS',
|
|
1680
|
-
message: 'Warnings occurred and --failAfterWarnings flag present'
|
|
1681
|
-
});
|
|
1669
|
+
loadConfigFile_js.handleError(rollup.errFailAfterWarnings());
|
|
1682
1670
|
}
|
|
1683
1671
|
}
|
|
1684
1672
|
catch (err) {
|
|
@@ -1694,7 +1682,7 @@ async function runRollup(command) {
|
|
|
1694
1682
|
async function getConfigs(command) {
|
|
1695
1683
|
if (command.config) {
|
|
1696
1684
|
const configFile = await getConfigPath(command.config);
|
|
1697
|
-
const { options, warnings } = await loadConfigFile_js.
|
|
1685
|
+
const { options, warnings } = await loadConfigFile_js.loadConfigFile(configFile, command);
|
|
1698
1686
|
return { options, warnings };
|
|
1699
1687
|
}
|
|
1700
1688
|
return await loadConfigFromCommand(command);
|
package/dist/es/rollup.js
CHANGED