Skip to content

Commit 5657efe

Browse files
committed
fix: integration test type:module, fixture node_modules, asset hashing
- Add "type": "module" to integration/test-runner/package.json - Force-add gitignored test fixture node_modules - Add extractAssets: 'legacy-html' to rollup-plugin-html asset tests (default changed to true with CSS bundling feature) Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e5eeb6e commit 5657efe

5 files changed

Lines changed: 20 additions & 0 deletions

File tree

integration/test-runner/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@web/test-runner-integration-tests",
3+
"type": "module",
34
"version": "0.0.0",
45
"private": true,
56
"publishConfig": {

packages/rollup-plugin-html/test/fixtures/resolves-assets-in-styles-node-modules/node_modules/foo/fonts/font-bold.woff2

Whitespace-only changes.

packages/rollup-plugin-html/test/fixtures/resolves-assets-in-styles-node-modules/node_modules/foo/fonts/font-normal.woff2

Whitespace-only changes.

packages/rollup-plugin-html/test/fixtures/resolves-assets-in-styles-node-modules/node_modules/foo/node_modules-styles-with-fonts.css

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/rollup-plugin-html/test/rollup-plugin-html.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ describe('rollup-plugin-html', () => {
698698
const config = {
699699
plugins: [
700700
rollupPluginHTML({
701+
extractAssets: 'legacy-html',
701702
input: {
702703
html: `<html>
703704
<head>
@@ -767,6 +768,7 @@ describe('rollup-plugin-html', () => {
767768
const config = {
768769
plugins: [
769770
rollupPluginHTML({
771+
extractAssets: 'legacy-html',
770772
input: {
771773
html: `<html>
772774
<head>
@@ -796,6 +798,7 @@ describe('rollup-plugin-html', () => {
796798
const config = {
797799
plugins: [
798800
rollupPluginHTML({
801+
extractAssets: 'legacy-html',
799802
input: {
800803
html: `<html>
801804
<head>
@@ -1292,6 +1295,7 @@ describe('rollup-plugin-html', () => {
12921295
const config = {
12931296
plugins: [
12941297
rollupPluginHTML({
1298+
extractAssets: 'legacy-html',
12951299
input: {
12961300
html: `<html>
12971301
<head>

0 commit comments

Comments
 (0)