rollup 2.38.0 → 2.38.4
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 +41 -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 +1044 -1045
- package/dist/es/shared/watch.js +15 -6
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.browser.js +4 -3
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +15 -6
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +1025 -1026
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +19 -20
package/dist/es/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.38.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.38.4
|
|
4
|
+
Tue, 02 Feb 2021 05:54:38 GMT - commit 991bb98fad1f3f76226bfe6243fd6cc45a19a39b
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -5548,13 +5548,14 @@ async _addToNodeFs(path, initialAdd, priorWh, depth, target) {
|
|
|
5548
5548
|
const follow = this.fsw.options.followSymlinks && !path.includes(STAR$1) && !path.includes(BRACE_START);
|
|
5549
5549
|
let closer;
|
|
5550
5550
|
if (stats.isDirectory()) {
|
|
5551
|
+
const absPath = sysPath.resolve(path);
|
|
5551
5552
|
const targetPath = follow ? await fsrealpath(path) : path;
|
|
5552
5553
|
if (this.fsw.closed) return;
|
|
5553
5554
|
closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
|
|
5554
5555
|
if (this.fsw.closed) return;
|
|
5555
5556
|
// preserve this symlink's target path
|
|
5556
|
-
if (
|
|
5557
|
-
this.fsw._symlinkPaths.set(
|
|
5557
|
+
if (absPath !== targetPath && targetPath !== undefined) {
|
|
5558
|
+
this.fsw._symlinkPaths.set(absPath, targetPath);
|
|
5558
5559
|
}
|
|
5559
5560
|
} else if (stats.isSymbolicLink()) {
|
|
5560
5561
|
const targetPath = follow ? await fsrealpath(path) : path;
|
|
@@ -5888,8 +5889,7 @@ handleEvent(event, path, fullPath, realPath, parent, watchedDir, item, info, opt
|
|
|
5888
5889
|
* @returns {Function} closer for the watcher instance
|
|
5889
5890
|
*/
|
|
5890
5891
|
_watchWithFsEvents(watchPath, realPath, transform, globFilter) {
|
|
5891
|
-
if (this.fsw.closed) return;
|
|
5892
|
-
if (this.fsw._isIgnored(watchPath)) return;
|
|
5892
|
+
if (this.fsw.closed || this.fsw._isIgnored(watchPath)) return;
|
|
5893
5893
|
const opts = this.fsw.options;
|
|
5894
5894
|
const watchCallback = async (fullPath, flags, info) => {
|
|
5895
5895
|
if (this.fsw.closed) return;
|
|
@@ -6977,6 +6977,15 @@ _remove(directory, item, isDirectory) {
|
|
|
6977
6977
|
const wasTracked = parent.has(item);
|
|
6978
6978
|
parent.remove(item);
|
|
6979
6979
|
|
|
6980
|
+
// Fixes issue #1042 -> Relative paths were detected and added as symlinks
|
|
6981
|
+
// (https://github.com/paulmillr/chokidar/blob/e1753ddbc9571bdc33b4a4af172d52cb6e611c10/lib/nodefs-handler.js#L612),
|
|
6982
|
+
// but never removed from the map in case the path was deleted.
|
|
6983
|
+
// This leads to an incorrect state if the path was recreated:
|
|
6984
|
+
// https://github.com/paulmillr/chokidar/blob/e1753ddbc9571bdc33b4a4af172d52cb6e611c10/lib/nodefs-handler.js#L553
|
|
6985
|
+
if (this._symlinkPaths.has(fullPath)) {
|
|
6986
|
+
this._symlinkPaths.delete(fullPath);
|
|
6987
|
+
}
|
|
6988
|
+
|
|
6980
6989
|
// If we wait for this file to be fully written, cancel the wait.
|
|
6981
6990
|
let relPath = path;
|
|
6982
6991
|
if (this.options.cwd) relPath = sysPath.relative(this.options.cwd, path);
|
package/dist/loadConfigFile.js
CHANGED