Skip to content

Commit fb9c73c

Browse files
committed
build: patch rollup-license-plugin to fix on windows
1 parent 4df44dc commit fb9c73c

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dist/index.js b/dist/index.js
2+
index 9baea0c8023c03d19b1494f818e1e11578f05b32..f2c874403361a559d33f9290109811a8a0c8d912 100644
3+
--- a/dist/index.js
4+
+++ b/dist/index.js
5+
@@ -101,7 +101,7 @@ function createRollupLicensePlugin(pluginOptions = {}, pluginName = "rollup-lice
6+
Object.entries(chunk.modules).filter(
7+
([path, module]) => Boolean(path.match(/node_modules/)) && module.renderedLength > 0
8+
).map(
9+
- ([path]) => path.startsWith("\0") ? path.replace(/^\0/, "") : path
10+
+ ([path]) => path.startsWith("\0") ? path.replace(/^\0/, "") : path.replace(/\\/g, '/')
11+
).map((path) => [path, path.split("node_modules").pop()]).map(([path, filePath]) => {
12+
const segments = filePath.replace(/^\//, "").split("/");
13+
const packageName = segments[0].startsWith("@") ? `${segments[0]}/${segments[1]}` : segments[0];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
"quicktype-core": "23.0.170",
187187
"resolve-url-loader": "5.0.0",
188188
"rollup": "4.24.0",
189-
"rollup-license-plugin": "^3.0.0",
189+
"rollup-license-plugin": "patch:rollup-license-plugin@npm%3A3.0.0#~/.yarn/patches/rollup-license-plugin-npm-3.0.0-038e5f6edc.patch",
190190
"rollup-plugin-sourcemaps": "^0.6.0",
191191
"rxjs": "7.8.1",
192192
"sass": "1.80.4",

packages/angular/ssr/third_party/beasties/rollup.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ console.warn(process.env);
2727

2828
export default {
2929
plugins: [
30+
{
31+
name: 'resolveBazel',
32+
resolveId: resolveBazel,
33+
},
3034
nodeResolve({
3135
preferBuiltins: false,
3236
browser: true,

0 commit comments

Comments
 (0)