Skip to content

Commit 2fdca19

Browse files
chore: fix
1 parent 8be5307 commit 2fdca19

File tree

8 files changed

+19
-15
lines changed

8 files changed

+19
-15
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
- name: Install dependencies (old Node.js version)
103103
run: |
104104
rm package-lock.json
105-
npm install --ignore-engines
105+
npm install --ignore-engines --ignore-scripts
106106
if: matrix.node-version == '12.x' || matrix.node-version == '14.x' || matrix.node-version == '16.x' || matrix.node-version == '18.x'
107107

108108
- name: Install dependencies

test/cases/auxiliary-assets/fonts.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
font-style: normal;
44
font-weight: 300;
55
font-display: swap;
6-
src: local("Roboto Light"), local("Roboto-Light"),
6+
src:
7+
local("Roboto Light"),
8+
local("Roboto-Light"),
79
url("fonts/roboto-v18-latin-300.woff2") format("woff2"),
810
url("fonts/roboto-v18-latin-300.woff") format("woff"),
911
url("fonts/roboto-v18-latin-300.ttf") format("truetype");

test/cases/custom-loader-with-functional-exports/app/mockLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export default function loader() {
99
];
1010
1111
export var cnA = () => "class-name-a";
12-
export var cnB = () => "class-name-b";`
12+
export var cnB = () => "class-name-b";`,
1313
);
1414
}

test/cases/custom-loader-with-new-url-and-public-path-1/app/mockLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export default function loader() {
77
[module.id, ".foo {background: url(" + new URL("./img.png", import.meta.url) + ")}", ""],
88
[module.id, ".bar {background: url(" + new URL("../outer-img.png", import.meta.url) + ")}", ""],
99
[module.id, ".baz {background: url(" + new URL("./nested/nested-img.png", import.meta.url) + ")}", ""]
10-
]`
10+
]`,
1111
);
1212
}

test/cases/custom-loader-with-new-url-and-public-path-auto/app/mockLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export default function loader() {
77
[module.id, ".foo {background: url(" + new URL("./img.png", import.meta.url) + ")}", ""],
88
[module.id, ".bar {background: url(" + new URL("../outer-img.png", import.meta.url) + ")}", ""],
99
[module.id, ".baz {background: url(" + new URL("./nested/nested-img.png", import.meta.url) + ")}", ""]
10-
]`
10+
]`,
1111
);
1212
}

test/cases/custom-loader-with-new-url-and-public-path-default-auto/app/mockLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export default function loader() {
77
[module.id, ".foo {background: url(" + new URL("./img.png", import.meta.url) + ")}", ""],
88
[module.id, ".bar {background: url(" + new URL("../outer-img.png", import.meta.url) + ")}", ""],
99
[module.id, ".baz {background: url(" + new URL("./nested/nested-img.png", import.meta.url) + ")}", ""]
10-
]`
10+
]`,
1111
);
1212
}

test/cases/custom-loader-with-new-url-and-public-path/app/mockLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export default function loader() {
77
[module.id, ".foo {background: url(" + new URL("./img.png", import.meta.url) + ")}", ""],
88
[module.id, ".bar {background: url(" + new URL("../outer-img.png", import.meta.url) + ")}", ""],
99
[module.id, ".baz {background: url(" + new URL("./nested/nested-img.png", import.meta.url) + ")}", ""]
10-
]`
10+
]`,
1111
);
1212
}

test/manual/src/index.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,16 @@ makeButton(".lazy-module-button", () =>
6767
.querySelector(".lazy-css-module")
6868
// eslint-disable-next-line no-underscore-dangle
6969
.classList.add(module.__esModule ? module.default.style : module.style);
70-
})
70+
}),
7171
);
7272

73-
makeButton(".preloaded-button1", () =>
74-
import(/* webpackChunkName: "preloaded1" */ "./preloaded1")
73+
makeButton(
74+
".preloaded-button1",
75+
() => import(/* webpackChunkName: "preloaded1" */ "./preloaded1"),
7576
);
76-
makeButton(".preloaded-button2", () =>
77-
import(/* webpackChunkName: "preloaded2" */ "./preloaded2")
77+
makeButton(
78+
".preloaded-button2",
79+
() => import(/* webpackChunkName: "preloaded2" */ "./preloaded2"),
7880
);
7981

8082
makeButton(".lazy-failure-button", () => import("./lazy-failure"), false);
@@ -85,7 +87,7 @@ makeButton(".crossorigin", () => {
8587
const promise = import("./crossorigin").then(() => {
8688
const lastTwoElements = Array.from(document.head.children).slice(-2);
8789
const hasCrossorigin = lastTwoElements.every(
88-
(element) => element.crossOrigin === "anonymous"
90+
(element) => element.crossOrigin === "anonymous",
8991
);
9092
if (!hasCrossorigin) {
9193
throw new Error('Chunks miss crossorigin="anonymous" attribute.');
@@ -106,12 +108,12 @@ worker.addEventListener("message", (event) => {
106108
makeButton(
107109
".prefetch-button",
108110
() => import(/* webpackPrefetch: true */ "./prefetch.css"),
109-
false
111+
false,
110112
);
111113

112114
makeButton(
113115
".preload-button",
114116
// eslint-disable-next-line import/extensions
115117
() => import("./preload.js"),
116-
false
118+
false,
117119
);

0 commit comments

Comments
 (0)