-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1154 from endojs/mfig-bundle-source-override-mistake
build(bundle-source): pin to a fixed rollup tarball
- Loading branch information
Showing
4 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
This patch is necessary until: | ||
|
||
```sh | ||
tarball=$(npm pack -q rollup@^2.70.1) | ||
tar -zxf "$tarball" package/package.json | ||
grep '"magic-string":' package/package.json | ||
``` | ||
|
||
Outputs something with a version specifier that is greater than or equal to `^0.26.1`. | ||
|
||
When that happens, we can switch to that new version of rollup and delete this patch file | ||
and `rollup-2.70.1-endo.1.tgz`. | ||
|
||
diff -ur rollup-2.70.1/dist/es/shared/rollup.js rollup-2.70.1-endo.1/dist/es/shared/rollup.js | ||
--- rollup-2.70.1/dist/es/shared/rollup.js 1985-10-26 02:15:00.000000000 -0600 | ||
+++ rollup-2.70.1-endo.1/dist/es/shared/rollup.js 2022-04-13 11:12:09.000000000 -0600 | ||
@@ -501,7 +501,7 @@ | ||
filename: { writable: true, value: options.filename }, | ||
indentExclusionRanges: { writable: true, value: options.indentExclusionRanges }, | ||
sourcemapLocations: { writable: true, value: new BitSet() }, | ||
- storedNames: { writable: true, value: {} }, | ||
+ storedNames: { writable: true, value: Object.create(null) }, | ||
indentStr: { writable: true, value: guessIndent(string) } | ||
}); | ||
|
||
diff -ur rollup-2.70.1/dist/shared/rollup.js rollup-2.70.1-endo.1/dist/shared/rollup.js | ||
--- rollup-2.70.1/dist/shared/rollup.js 1985-10-26 02:15:00.000000000 -0600 | ||
+++ rollup-2.70.1-endo.1/dist/shared/rollup.js 2022-04-13 11:13:13.000000000 -0600 | ||
@@ -1148,7 +1148,7 @@ | ||
filename: { writable: true, value: options.filename }, | ||
indentExclusionRanges: { writable: true, value: options.indentExclusionRanges }, | ||
sourcemapLocations: { writable: true, value: new BitSet() }, | ||
- storedNames: { writable: true, value: {} }, | ||
+ storedNames: { writable: true, value: Object.create(null) }, | ||
indentStr: { writable: true, value: guessIndent(string) } | ||
}); | ||
|
||
diff -ur rollup-2.70.1/package.json rollup-2.70.1-endo.1/package.json | ||
--- rollup-2.70.1/package.json 1985-10-26 02:15:00.000000000 -0600 | ||
+++ rollup-2.70.1-endo.1/package.json 2022-04-13 11:14:16.000000000 -0600 | ||
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "rollup", | ||
- "version": "2.70.1", | ||
+ "version": "2.70.1-endo.1", | ||
"description": "Next-generation ES module bundler", | ||
"main": "dist/rollup.js", | ||
"module": "dist/es/rollup.js", |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters