rollup 4.14.0 → 4.14.2
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/README.md +2 -1
- package/dist/bin/rollup +5 -5
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +184 -167
- package/dist/es/shared/parseAst.js +114 -99
- package/dist/es/shared/watch.js +4 -4
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/native.js +32 -33
- package/dist/parseAst.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +7 -7
- package/dist/shared/parseAst.js +125 -106
- package/dist/shared/rollup.js +269 -252
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +4 -4
- package/package.json +31 -31
package/README.md
CHANGED
|
@@ -89,6 +89,7 @@ But with ES modules, instead of importing the whole `utils` object, we can just
|
|
|
89
89
|
```js
|
|
90
90
|
// import the ajax function with an ES import statement
|
|
91
91
|
import { ajax } from 'node:utils';
|
|
92
|
+
|
|
92
93
|
var query = 'Rollup';
|
|
93
94
|
// call the ajax function
|
|
94
95
|
ajax('https://api.example.com?search=' + query).then(handleResponse);
|
|
@@ -108,7 +109,7 @@ To make sure your ES modules are immediately usable by tools that work with Comm
|
|
|
108
109
|
|
|
109
110
|
## Contributors
|
|
110
111
|
|
|
111
|
-
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. <a href="https://github.com/rollup/rollup/graphs/contributors"><img src="https://opencollective.com/rollup/contributors.svg?width=890" /></a
|
|
112
|
+
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. <a href="https://github.com/rollup/rollup/graphs/contributors"><img src="https://opencollective.com/rollup/contributors.svg?width=890" /></a>. If you want to contribute yourself, head over to the [contribution guidelines](CONTRIBUTING.md).
|
|
112
113
|
|
|
113
114
|
## Backers
|
|
114
115
|
|
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.14.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.14.2
|
|
5
|
+
Fri, 12 Apr 2024 06:23:07 GMT - commit 7275328b41b29605142bfdf55d68cb54e895a20c
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
|
@@ -20,7 +20,7 @@ const require$$0$1 = require('fs');
|
|
|
20
20
|
const parseAst_js = require('../shared/parseAst.js');
|
|
21
21
|
const fseventsImporter = require('../shared/fsevents-importer.js');
|
|
22
22
|
const promises = require('node:fs/promises');
|
|
23
|
-
const
|
|
23
|
+
const path = require('node:path');
|
|
24
24
|
const loadConfigFile_js = require('../shared/loadConfigFile.js');
|
|
25
25
|
require('tty');
|
|
26
26
|
require('../native.js');
|
|
@@ -1607,7 +1607,7 @@ async function build(inputOptions, warnings, silent = false) {
|
|
|
1607
1607
|
const DEFAULT_CONFIG_BASE = 'rollup.config';
|
|
1608
1608
|
async function getConfigPath(commandConfig) {
|
|
1609
1609
|
if (commandConfig === true) {
|
|
1610
|
-
return
|
|
1610
|
+
return path.resolve(await findConfigFileNameInCwd());
|
|
1611
1611
|
}
|
|
1612
1612
|
if (commandConfig.slice(0, 5) === 'node:') {
|
|
1613
1613
|
const packageName = commandConfig.slice(5);
|
|
@@ -1628,7 +1628,7 @@ async function getConfigPath(commandConfig) {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
|
-
return
|
|
1631
|
+
return path.resolve(commandConfig);
|
|
1632
1632
|
}
|
|
1633
1633
|
async function findConfigFileNameInCwd() {
|
|
1634
1634
|
const filesInWorkingDirectory = new Set(await promises.readdir(process$1.cwd()));
|
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/parseAst.js
CHANGED
package/dist/es/rollup.js
CHANGED