diff --git a/.changeset/eleven-mayflies-drive.md b/.changeset/eleven-mayflies-drive.md new file mode 100644 index 000000000..f05784976 --- /dev/null +++ b/.changeset/eleven-mayflies-drive.md @@ -0,0 +1,6 @@ +--- +'@web/test-runner-coverage-v8': minor +'@web/dev-server-core': patch +--- + +Upgrade lru-cache dependency & add a file cache for v8-to-istanbul conversions diff --git a/.changeset/fuzzy-terms-push.md b/.changeset/fuzzy-terms-push.md new file mode 100644 index 000000000..ad9b2236f --- /dev/null +++ b/.changeset/fuzzy-terms-push.md @@ -0,0 +1,36 @@ +--- +'@web/browser-logs': minor +'@web/config-loader': minor +'@web/dev-server': minor +'@web/dev-server-core': minor +'@web/dev-server-esbuild': minor +'@web/dev-server-hmr': minor +'@web/dev-server-import-maps': minor +'@web/dev-server-legacy': major +'@web/dev-server-rollup': minor +'@web/dev-server-storybook': minor +'@web/parse5-utils': major +'@web/polyfills-loader': major +'@web/rollup-plugin-copy': minor +'@web/rollup-plugin-html': major +'@web/rollup-plugin-import-meta-assets': major +'@web/rollup-plugin-polyfills-loader': major +'rollup-plugin-workbox': minor +'@web/test-runner': minor +'@web/test-runner-browserstack': minor +'@web/test-runner-chrome': minor +'@web/test-runner-cli': minor +'@web/test-runner-commands': minor +'@web/test-runner-core': minor +'@web/test-runner-coverage-v8': minor +'@web/test-runner-junit-reporter': minor +'@web/test-runner-mocha': minor +'@web/test-runner-playwright': minor +'@web/test-runner-puppeteer': minor +'@web/test-runner-saucelabs': minor +'@web/test-runner-selenium': minor +'@web/test-runner-visual-regression': minor +'@web/test-runner-webdriver': minor +--- + +Set node 16 as the minimum version. diff --git a/.changeset/lucky-penguins-destroy.md b/.changeset/lucky-penguins-destroy.md new file mode 100644 index 000000000..c7c04cf07 --- /dev/null +++ b/.changeset/lucky-penguins-destroy.md @@ -0,0 +1,9 @@ +--- +'@web/dev-server-rollup': minor +'@web/test-runner-commands': minor +'@web/test-runner-junit-reporter': minor +'@web/test-runner-mocha': minor +'@web/test-runner-visual-regression': minor +--- + +Update mocha from version 8.2.0 to version 10.2.0 diff --git a/.changeset/tender-jokes-destroy.md b/.changeset/tender-jokes-destroy.md new file mode 100644 index 000000000..d1700122d --- /dev/null +++ b/.changeset/tender-jokes-destroy.md @@ -0,0 +1,13 @@ +--- +"@web/dev-server-rollup": minor +"@web/dev-server-storybook": minor +"@web/dev-server": minor +"@web/rollup-plugin-html": major +"@web/rollup-plugin-import-meta-assets": major +"@web/rollup-plugin-polyfills-loader": major +"rollup-plugin-workbox": major +"@web/test-runner-mocha": minor +"@web/test-runner": minor +--- + +Require Rollup@v3.x and update all Rollup related dependencies to latest. diff --git a/.github/workflows/verify-browserstack.yml b/.github/workflows/verify-browserstack.yml index 9d7e18eb2..62effb99c 100644 --- a/.github/workflows/verify-browserstack.yml +++ b/.github/workflows/verify-browserstack.yml @@ -15,12 +15,12 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup Node 14 + - name: Setup Node 16 uses: actions/setup-node@v3 env: FORCE_COLOR: 0 with: - node-version: '14' + node-version: '16' cache: 'yarn' - name: Install dependencies diff --git a/.github/workflows/verify-node.yml b/.github/workflows/verify-node.yml index 8587815ea..727b27d32 100644 --- a/.github/workflows/verify-node.yml +++ b/.github/workflows/verify-node.yml @@ -12,9 +12,9 @@ jobs: strategy: matrix: node-version: - - '14' - '16' - '18' + - '19' steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/verify-saucelabs.yml b/.github/workflows/verify-saucelabs.yml index 6da66f2da..766a5bd17 100644 --- a/.github/workflows/verify-saucelabs.yml +++ b/.github/workflows/verify-saucelabs.yml @@ -15,12 +15,12 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup Node 14 + - name: Setup Node 16 uses: actions/setup-node@v3 env: FORCE_COLOR: 0 with: - node-version: '14' + node-version: '16' cache: 'yarn' - name: Install dependencies diff --git a/package.json b/package.json index 503cb49e5..3d48396d8 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "url": "https://github.com/modernweb-dev/web.git" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=16.0.0" }, "scripts": { "build": "rimraf --glob packages/*/tsconfig.tsbuildinfo && tsc --build", @@ -47,10 +47,10 @@ }, "devDependencies": { "@changesets/cli": "^2.16.0", - "@rollup/plugin-node-resolve": "^11.0.1", - "@rollup/plugin-typescript": "^8.3.0", + "@rollup/plugin-node-resolve": "^15.0.1", + "@rollup/plugin-typescript": "^11.0.0", "@types/chai": "^4.2.22", - "@types/mocha": "^8.2.0", + "@types/mocha": "^10.0.1", "@types/node": "*", "@types/node-fetch": "^2.5.8", "@typescript-eslint/eslint-plugin": "^5.3.0", @@ -65,15 +65,15 @@ "hanbi": "^1.0.1", "husky": "^8.0.1", "lint-staged": "^13.0.3", - "mocha": "^8.2.1", + "mocha": "^10.2.0", "nanocolors": "^0.2.1", "prettier": "^2.4.1", "prettier-plugin-package": "^1.3.0", "rimraf": "^4.4.1", - "rollup": "^2.66.1", + "rollup": "^3.15.0", "rollup-plugin-terser": "^7.0.2", "ts-node": "^10.4.0", - "typescript": "4.1.3" + "typescript": "4.2.4" }, "resolutions": { "@lion/accordion": "^0.11.1", diff --git a/packages/browser-logs/package.json b/packages/browser-logs/package.json index b339b9b8f..10321b3a3 100644 --- a/packages/browser-logs/package.json +++ b/packages/browser-logs/package.json @@ -21,7 +21,7 @@ } }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "build": "tsc", diff --git a/packages/config-loader/package.json b/packages/config-loader/package.json index c0b621801..6e1856c9c 100644 --- a/packages/config-loader/package.json +++ b/packages/config-loader/package.json @@ -15,7 +15,7 @@ "homepage": "https://github.com/modernweb-dev/web/tree/master/packages/config-loader", "main": "src/index.js", "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "build": "tsc", diff --git a/packages/dev-server-core/package.json b/packages/dev-server-core/package.json index 40e8589c9..2146f2b23 100644 --- a/packages/dev-server-core/package.json +++ b/packages/dev-server-core/package.json @@ -28,7 +28,7 @@ } }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "build": "tsc", @@ -69,7 +69,7 @@ "koa-etag": "^4.0.0", "koa-send": "^5.0.1", "koa-static": "^5.0.0", - "lru-cache": "^6.0.0", + "lru-cache": "^8.0.4", "mime-types": "^2.1.27", "parse5": "^6.0.1", "picomatch": "^2.2.2", @@ -79,7 +79,6 @@ "@types/clone": "^2.1.0", "@types/koa-etag": "^3.0.0", "@types/koa-static": "^4.0.1", - "@types/lru-cache": "^5.1.0", "@types/parse5": "^6.0.1", "abort-controller": "^3.0.0", "nanoid": "^3.1.25", diff --git a/packages/dev-server-core/src/middleware/PluginTransformCache.ts b/packages/dev-server-core/src/middleware/PluginTransformCache.ts index babbed6f2..0661ff3fb 100644 --- a/packages/dev-server-core/src/middleware/PluginTransformCache.ts +++ b/packages/dev-server-core/src/middleware/PluginTransformCache.ts @@ -30,11 +30,11 @@ export class PluginTransformCache { private lruCache: LRUCache; constructor(private fileWatcher: FSWatcher, private rootDir: string) { - this.lruCache = new LRUCache({ - length: (e, key) => e.body.length + (key ? key.length : 0), - max: 52428800, + this.lruCache = new LRUCache({ + sizeCalculation: (e, key) => e.body.length + (key ? key.length : 0), + maxSize: 52428800, noDisposeOnSet: true, - dispose: cacheKey => { + dispose: (_value, cacheKey) => { // remove file path -> url mapping when we are no longer caching it for (const [filePath, cacheKeysForFilePath] of this.cacheKeysPerFilePath.entries()) { if (cacheKeysForFilePath.has(cacheKey)) { @@ -50,7 +50,7 @@ export class PluginTransformCache { const cacheKeys = this.cacheKeysPerFilePath.get(filePath); if (cacheKeys) { for (const cacheKey of cacheKeys) { - this.lruCache.del(cacheKey); + this.lruCache.delete(cacheKey); } } }; diff --git a/packages/dev-server-esbuild/package.json b/packages/dev-server-esbuild/package.json index 3f6d378cd..a67c70ef6 100644 --- a/packages/dev-server-esbuild/package.json +++ b/packages/dev-server-esbuild/package.json @@ -21,7 +21,7 @@ } }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "build": "tsc", diff --git a/packages/dev-server-hmr/package.json b/packages/dev-server-hmr/package.json index e97e905ca..68f166cf8 100644 --- a/packages/dev-server-hmr/package.json +++ b/packages/dev-server-hmr/package.json @@ -21,7 +21,7 @@ } }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "build": "tsc", diff --git a/packages/dev-server-import-maps/package.json b/packages/dev-server-import-maps/package.json index 6da8eaade..d2caa3f2a 100644 --- a/packages/dev-server-import-maps/package.json +++ b/packages/dev-server-import-maps/package.json @@ -21,7 +21,7 @@ } }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "build": "tsc", diff --git a/packages/dev-server-import-maps/test/resolving.test.ts b/packages/dev-server-import-maps/test/resolving.test.ts index b6f57a1a2..42cb50938 100644 --- a/packages/dev-server-import-maps/test/resolving.test.ts +++ b/packages/dev-server-import-maps/test/resolving.test.ts @@ -382,7 +382,7 @@ describe('resolving imports', () => { expect(loggerSpies.warn.callCount).to.equal(1); const warning = loggerSpies.warn.getCall(0).args[0]; expectIncludes(warning, 'Failed to parse import map in "'); - expectIncludes(warning, `test${path.sep}index.html": Unexpected end of JSON input`); + expectIncludes(warning, `test${path.sep}index.html": `); server.stop(); }); diff --git a/packages/dev-server-legacy/package.json b/packages/dev-server-legacy/package.json index f9c38b418..0ae4fa6b7 100644 --- a/packages/dev-server-legacy/package.json +++ b/packages/dev-server-legacy/package.json @@ -21,7 +21,7 @@ } }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "build": "tsc", diff --git a/packages/dev-server-rollup/package.json b/packages/dev-server-rollup/package.json index 9d37ce53c..3ba229fe0 100644 --- a/packages/dev-server-rollup/package.json +++ b/packages/dev-server-rollup/package.json @@ -21,7 +21,7 @@ } }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "mocha \"test/node/**/*.test.ts\" --require ts-node/register", @@ -47,26 +47,27 @@ "transform" ], "dependencies": { - "@rollup/plugin-node-resolve": "^13.0.4", + "@rollup/plugin-node-resolve": "^15.0.1", "@web/dev-server-core": "^0.4.1", "nanocolors": "^0.2.1", "parse5": "^6.0.1", - "rollup": "^2.67.0", + "rollup": "^3.15.0", "whatwg-url": "^11.0.0" }, "devDependencies": { "@babel/plugin-transform-template-literals": "^7.12.1", - "@rollup/plugin-alias": "^3.1.1", + "@rollup/plugin-alias": "^4.0.3", "@rollup/plugin-babel": "^6.0.3", - "@rollup/plugin-commonjs": "^18.0.0", + "@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-replace": "^5.0.2", "@types/parse5": "^6.0.1", "@types/whatwg-url": "^11.0.0", "@web/test-runner-chrome": "^0.12.1", "@web/test-runner-core": "^0.10.29", "chai": "^4.2.0", + "mocha": "^10.2.0", "node-fetch": "3.0.0-beta.9", "postcss": "^8.0.0", - "rollup-plugin-postcss": "^4.0.0" + "rollup-plugin-postcss": "^4.0.2" } } diff --git a/packages/dev-server-rollup/src/createRollupPluginContextAdapter.ts b/packages/dev-server-rollup/src/createRollupPluginContextAdapter.ts index ff88d90c9..b8b5a84da 100644 --- a/packages/dev-server-rollup/src/createRollupPluginContextAdapter.ts +++ b/packages/dev-server-rollup/src/createRollupPluginContextAdapter.ts @@ -27,7 +27,7 @@ export function createRollupPluginContextAdapter< return { ...pluginContext, - getModuleInfo(id: string): ModuleInfo { + getModuleInfo(id: string): Partial { return { id, code: context.body as string, diff --git a/packages/dev-server-rollup/src/rollupAdapter.ts b/packages/dev-server-rollup/src/rollupAdapter.ts index 8739fbbfb..e0b6b5919 100644 --- a/packages/dev-server-rollup/src/rollupAdapter.ts +++ b/packages/dev-server-rollup/src/rollupAdapter.ts @@ -17,12 +17,7 @@ import { setTextContent, } from '@web/dev-server-core/dist/dom5'; import { parse as parseHtml, serialize as serializeHtml } from 'parse5'; -import { - CustomPluginOptions, - Plugin as RollupPlugin, - TransformPluginContext, - ResolveIdHook, -} from 'rollup'; +import { CustomPluginOptions, Plugin as RollupPlugin, TransformPluginContext } from 'rollup'; import { InputOptions } from 'rollup'; import { red, cyan } from 'nanocolors'; @@ -77,7 +72,7 @@ export function rollupAdapter( let fileWatcher: FSWatcher; let config: DevServerCoreConfig; let rootDir: string; - let idResolvers: ResolveIdHook[] = []; + let idResolvers: Array['resolveId']> = []; function savePluginMeta( id: string, @@ -100,20 +95,35 @@ export function rollupAdapter( idResolvers = []; // call the options and buildStart hooks - const transformedOptions = - (await rollupPlugin.options?.call( - rollupPluginContexts.minimalPluginContext, - rollupInputOptions, - )) ?? rollupInputOptions; - rollupPlugin.buildStart?.call( - rollupPluginContexts.pluginContext, - rollupPluginContexts.normalizedInputOptions, - ); + let transformedOptions; + if (typeof rollupPlugin.options === 'function') { + transformedOptions = + (await rollupPlugin.options?.call( + rollupPluginContexts.minimalPluginContext, + rollupInputOptions, + )) ?? rollupInputOptions; + } else { + transformedOptions = rollupInputOptions; + } + if (typeof rollupPlugin.buildStart === 'function') { + rollupPlugin.buildStart?.call( + rollupPluginContexts.pluginContext, + rollupPluginContexts.normalizedInputOptions, + ); + } - if (transformedOptions && transformedOptions.plugins) { + if ( + transformedOptions && + transformedOptions.plugins && + Array.isArray(transformedOptions.plugins) + ) { for (const subPlugin of transformedOptions.plugins) { - if (subPlugin && subPlugin.resolveId) { - idResolvers.push(subPlugin.resolveId); + if (subPlugin && !Array.isArray(subPlugin)) { + const resolveId = (subPlugin as RollupPlugin).resolveId; + + if (resolveId) { + idResolvers.push(resolveId); + } } } } @@ -200,8 +210,13 @@ export function rollupAdapter( } for (const idResolver of idResolvers) { - result = await idResolver.call(rollupPluginContext, resolvableImport, filePath, { + const idResolverHandler = + typeof idResolver === 'function' ? idResolver : idResolver.handler; + result = await idResolverHandler.call(rollupPluginContext, resolvableImport, filePath, { ...resolveOptions, + assertions: { + ...((resolveOptions?.assertions as Record) ?? {}), + }, isEntry: false, }); @@ -347,7 +362,10 @@ export function rollupAdapter( pluginMetaPerModule, ); - const result = await rollupPlugin.load?.call(rollupPluginContext, filePath); + let result; + if (typeof rollupPlugin.load === 'function') { + result = await rollupPlugin.load?.call(rollupPluginContext, filePath); + } if (typeof result === 'string') { return { body: result, type: 'js' }; @@ -384,11 +402,14 @@ export function rollupAdapter( pluginMetaPerModule, ); - const result = await rollupPlugin.transform?.call( - rollupPluginContext as TransformPluginContext, - context.body as string, - filePath, - ); + let result; + if (typeof rollupPlugin.transform === 'function') { + result = await rollupPlugin.transform?.call( + rollupPluginContext as TransformPluginContext, + context.body as string, + filePath, + ); + } let transformedCode: string | undefined = undefined; if (typeof result === 'string') { @@ -436,11 +457,14 @@ export function rollupAdapter( pluginMetaPerModule, ); - const result = await rollupPlugin.transform?.call( - rollupPluginContext as TransformPluginContext, - code, - filePath, - ); + let result; + if (typeof rollupPlugin.transform === 'function') { + result = await rollupPlugin.transform?.call( + rollupPluginContext as TransformPluginContext, + code, + filePath, + ); + } let transformedCode: string | undefined = undefined; if (typeof result === 'string') { @@ -484,7 +508,9 @@ export function rollupAdapter( const filePath = getRequestFilePath(context.url, rootDir); const info = rollupPluginContext.getModuleInfo(filePath); if (!info) throw new Error(`Missing info for module ${filePath}`); - rollupPlugin.moduleParsed?.call(rollupPluginContext as TransformPluginContext, info); + if (typeof rollupPlugin.moduleParsed === 'function') { + rollupPlugin.moduleParsed?.call(rollupPluginContext as TransformPluginContext, info); + } }, }; diff --git a/packages/dev-server-rollup/test/node/fixtures/commonjs/commonjs-browser-test.js b/packages/dev-server-rollup/test/node/fixtures/commonjs/commonjs-browser-test.js index dbb1cdea6..f451fb201 100644 --- a/packages/dev-server-rollup/test/node/fixtures/commonjs/commonjs-browser-test.js +++ b/packages/dev-server-rollup/test/node/fixtures/commonjs/commonjs-browser-test.js @@ -2,10 +2,7 @@ import '../../../../../../node_modules/chai/chai.js'; import defaultFoo from './modules/default-export.js'; import { namedFoo, namedBar } from './modules/named-exports.js'; -// TODO: Ideally, we would be able to import named exports. But @rollup/plugin-commonjs does not support this yet -// see: https://github.com/rollup/plugins/issues/481 -// import { compiledEsmFoo, compiledEsmBar } from '../src/compiled-esm-named-exports.js'; -import compiledEsm from './modules/compiled-esm-named-exports.js'; +import { compiledEsmFoo, compiledEsmBar } from './modules/compiled-esm-named-exports.js'; import compiledEsmDefault from './modules/compiled-esm-default-exports.js'; import requiredDefault from './modules/require-default.js'; @@ -24,8 +21,8 @@ describe('commonjs', () => { }); it('can handle compiled es modules with named exports', () => { - expect(compiledEsm.compiledEsmFoo).to.equal('foo'); - expect(compiledEsm.compiledEsmBar).to.equal('bar'); + expect(compiledEsmFoo).to.equal('foo'); + expect(compiledEsmBar).to.equal('bar'); }); it('can handle compiled es modules with a default export', () => { diff --git a/packages/dev-server-rollup/test/node/plugins/commonjs.test.ts b/packages/dev-server-rollup/test/node/plugins/commonjs.test.ts index e13aed548..3c5bd958d 100644 --- a/packages/dev-server-rollup/test/node/plugins/commonjs.test.ts +++ b/packages/dev-server-rollup/test/node/plugins/commonjs.test.ts @@ -52,10 +52,11 @@ describe('@rollup/plugin-commonjs', () => { try { const text = await fetchText(`${host}/foo.js`); - expectIncludes(text, 'var foo_1 = "bar"; var lorem = "ipsum";'); - expectIncludes(text, 'export default foo;'); - expectIncludes(text, 'export { foo_1 as foo };'); - expectIncludes(text, 'export { lorem };'); + expectIncludes(text, 'var foo_1 = foo.foo = "bar"; var lorem = foo.lorem = "ipsum";'); + expectIncludes( + text, + 'export { foo as __moduleExports, foo_1 as foo, lorem, foo as default };', + ); } finally { server.stop(); } @@ -86,10 +87,15 @@ module.exports.lorem = lorem;`; try { const text = await fetchText(`${host}/foo.js`); - expectIncludes(text, 'export default foo_1;'); - expectIncludes(text, 'export { foo_1 as __moduleExports };'); - expectIncludes(text, 'export { foo_2 as foo }'); - expectIncludes(text, 'export { lorem_1 as lorem }'); + expectIncludes(text, 'foo_1.__esModule = true;'); + expectIncludes(text, "const foo = 'bar';"); + expectIncludes(text, 'var foo_2 = foo_1.foo = foo;'); + expectIncludes(text, "const lorem = 'ipsum';"); + expectIncludes(text, 'var lorem_1 = foo_1.lorem = lorem;'); + expectIncludes( + text, + 'export { foo_1 as __moduleExports, foo_2 as foo, lorem_1 as lorem, foo_1 as default };', + ); } finally { server.stop(); } @@ -118,20 +124,13 @@ exports.default = _default;`; const text = await fetchText(`${host}/foo.js`); expectIncludes( text, - "import * as commonjsHelpers from '/__web-dev-server__/rollup/commonjsHelpers.js?web-dev-server-rollup-null-byte=%00commonjsHelpers.js';", + 'import * as commonjsHelpers from "/__web-dev-server__/rollup/commonjsHelpers.js?web-dev-server-rollup-null-byte=%00commonjsHelpers.js";', ); - expectIncludes( - text, - 'var foo = commonjsHelpers.createCommonjsModule(function (module, exports) {', - ); - expectIncludes(text, 'exports.__esModule = true;'); - expectIncludes(text, 'exports.default = void 0;'); + expectIncludes(text, 'foo.__esModule = true;'); + expectIncludes(text, 'var default_1 = foo.default = void 0;'); expectIncludes(text, "var _default = 'foo';"); - expectIncludes(text, 'exports.default = _default;'); - expectIncludes( - text, - 'export default /*@__PURE__*/commonjsHelpers.getDefaultExportFromCjs(foo);', - ); + expectIncludes(text, 'default_1 = foo.default = _default;'); + expectIncludes(text, 'export { foo as __moduleExports, default_1 as default };'); } finally { server.stop(); } @@ -189,13 +188,9 @@ exports.default = _default;`; try { const text = await fetchText(`${host}/foo.js`); - expectIncludes(text, "import './bar.js';"); - expectIncludes( - text, - "import bar from '/__web-dev-server__/rollup/bar.js?web-dev-server-rollup-null-byte=%00", - ); - expectIncludes(text, 'export default foo;'); - expectIncludes(text, 'export { bar_1 as bar };'); + expectIncludes(text, 'import require$$0 from "'); + expectIncludes(text, 'const bar = require$$0; var bar_1 = foo.bar = bar;'); + expectIncludes(text, 'export { foo as __moduleExports, bar_1 as bar, foo as default };'); } finally { server.stop(); } @@ -209,6 +204,7 @@ exports.default = _default;`; browsers: [chromeLauncher({ launchOptions: { devtools: false } })], plugins: [ fromRollup(rollupCommonjs)({ + requireReturnsDefault: 'preferred', include: '**/commonjs/modules/**/*', }), ], diff --git a/packages/dev-server-storybook/package.json b/packages/dev-server-storybook/package.json index e23b6c380..faf532b6b 100644 --- a/packages/dev-server-storybook/package.json +++ b/packages/dev-server-storybook/package.json @@ -24,7 +24,7 @@ } }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "build:wc": "node dist/build/cli.js -c demo/wc/.storybook", @@ -58,7 +58,7 @@ "@babel/preset-env": "^7.16.4", "@mdx-js/mdx": "^1.6.22", "@rollup/plugin-babel": "^6.0.3", - "@rollup/plugin-node-resolve": "^13.0.4", + "@rollup/plugin-node-resolve": "^15.0.1", "@storybook/csf-tools": "^6.4.9", "@web/dev-server-core": "^0.4.1", "@web/rollup-plugin-html": "^1.11.1", @@ -69,7 +69,7 @@ "es-module-lexer": "^1.0.2", "globby": "^11.0.1", "path-is-inside": "^1.0.2", - "rollup": "^2.66.1", + "rollup": "^3.15.0", "rollup-plugin-terser": "^7.0.2", "storybook-addon-markdown-docs": "^1.0.4" }, diff --git a/packages/dev-server-storybook/src/build/rollup/createRollupConfig.ts b/packages/dev-server-storybook/src/build/rollup/createRollupConfig.ts index cc220f21a..ab6b3d03c 100644 --- a/packages/dev-server-storybook/src/build/rollup/createRollupConfig.ts +++ b/packages/dev-server-storybook/src/build/rollup/createRollupConfig.ts @@ -124,7 +124,7 @@ export function createRollupConfig(params: CreateRollupConfigParams): RollupOpti ], }; - if (storyFilePaths && storyFilePaths.length > 0) { + if (storyFilePaths && storyFilePaths.length > 0 && Array.isArray(options.plugins)) { // plugins we need to inject only in the preview options.plugins!.unshift(injectExportsOrderPlugin(storyFilePaths)); options.plugins!.unshift(mdxPlugin()); diff --git a/packages/dev-server/package.json b/packages/dev-server/package.json index 10fbdc425..457649d70 100644 --- a/packages/dev-server/package.json +++ b/packages/dev-server/package.json @@ -25,7 +25,7 @@ } }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "start": "yarn start:syntax", diff --git a/packages/parse5-utils/package.json b/packages/parse5-utils/package.json index babec66ad..a99c0038b 100644 --- a/packages/parse5-utils/package.json +++ b/packages/parse5-utils/package.json @@ -21,7 +21,7 @@ } }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "build": "tsc", diff --git a/packages/polyfills-loader/package.json b/packages/polyfills-loader/package.json index 5c4a98df0..55f079cee 100644 --- a/packages/polyfills-loader/package.json +++ b/packages/polyfills-loader/package.json @@ -21,7 +21,7 @@ } }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "build": "tsc", diff --git a/packages/rollup-plugin-copy/package.json b/packages/rollup-plugin-copy/package.json index 7cd6929c0..264c2d336 100644 --- a/packages/rollup-plugin-copy/package.json +++ b/packages/rollup-plugin-copy/package.json @@ -25,7 +25,7 @@ } }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "mocha test/**/*.test.js --reporter dot", diff --git a/packages/rollup-plugin-html/package.json b/packages/rollup-plugin-html/package.json index 08ae50418..754d42696 100644 --- a/packages/rollup-plugin-html/package.json +++ b/packages/rollup-plugin-html/package.json @@ -21,7 +21,7 @@ } }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "demo:mpa": "rm -rf demo/dist && rollup -c demo/mpa/rollup.config.js --watch & yarn serve-demo", @@ -50,6 +50,6 @@ }, "devDependencies": { "@types/html-minifier-terser": "^7.0.0", - "rollup": "^2.66.1" + "rollup": "^3.15.0" } } diff --git a/packages/rollup-plugin-html/test/rollup-plugin-html.test.ts b/packages/rollup-plugin-html/test/rollup-plugin-html.test.ts index 6c98ee874..3d08f16ef 100644 --- a/packages/rollup-plugin-html/test/rollup-plugin-html.test.ts +++ b/packages/rollup-plugin-html/test/rollup-plugin-html.test.ts @@ -705,11 +705,11 @@ describe('rollup-plugin-html', () => { expect(outputHtml).to.include( '', ); - expect(outputHtml).to.include(''); - expect(outputHtml).to.include(''); - expect(outputHtml).to.include(''); - expect(outputHtml).to.include(''); - expect(outputHtml).to.include(''); + expect(outputHtml).to.include(''); + expect(outputHtml).to.include(''); + expect(outputHtml).to.include(''); + expect(outputHtml).to.include(''); + expect(outputHtml).to.include(''); }); it('deduplicates static assets with similar names', async () => { @@ -762,7 +762,7 @@ describe('rollup-plugin-html', () => { expect(stripNewlines(getAsset(output, 'index.html').source)).to.equal( '' + - '', + '', ); }); @@ -789,9 +789,9 @@ describe('rollup-plugin-html', () => { expect(stripNewlines(getAsset(output, 'index.html').source)).to.equal( '' + - '' + - '' + - '' + + '' + + '' + + '' + '', ); }); @@ -837,20 +837,20 @@ describe('rollup-plugin-html', () => { expect(stripNewlines(getAsset(output, 'page-a.html').source)).to.equal( '' + - ' ' + + ' ' + ' ', ); expect(stripNewlines(getAsset(output, 'page-b.html').source)).to.equal( '' + - ' ' + + ' ' + ' ', ); expect(stripNewlines(getAsset(output, 'page-c.html').source)).to.equal( '' + - ' ' + - ' ' + + ' ' + + ' ' + ' ', ); }); @@ -1034,9 +1034,9 @@ describe('rollup-plugin-html', () => { expect(stripNewlines(getAsset(output, 'x/index.html').source)).to.equal( [ '', - '', - '', - '', + '', + '', + '', '', ].join(''), ); diff --git a/packages/rollup-plugin-import-meta-assets/package.json b/packages/rollup-plugin-import-meta-assets/package.json index d5a6a4f15..a344bd595 100644 --- a/packages/rollup-plugin-import-meta-assets/package.json +++ b/packages/rollup-plugin-import-meta-assets/package.json @@ -21,7 +21,7 @@ } }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "npm run test:node", diff --git a/packages/rollup-plugin-import-meta-assets/test/integration.test.js b/packages/rollup-plugin-import-meta-assets/test/integration.test.js index ff642c003..d10263d0f 100644 --- a/packages/rollup-plugin-import-meta-assets/test/integration.test.js +++ b/packages/rollup-plugin-import-meta-assets/test/integration.test.js @@ -51,10 +51,10 @@ describe('rollup-plugin-import-meta-assets', () => { expect(output.length).to.equal(5); expectChunk(output, 'snapshots/simple-bundle.js', 'simple-bundle.js', [ - expectAsset(output, 'snapshots/one.svg', 'one.svg', 'assets/one-134aaf72.svg'), - expectAsset(output, 'snapshots/two.svg', 'two.svg', 'assets/two-e4de930c.svg'), - expectAsset(output, 'snapshots/three.svg', 'three.svg', 'assets/three-3f2c16b3.svg'), - expectAsset(output, 'snapshots/four.svg', 'four.svg', 'assets/four-b40404a7.svg'), + expectAsset(output, 'snapshots/one.svg', 'one.svg', 'assets/one-824f522a.svg'), + expectAsset(output, 'snapshots/two.svg', 'two.svg', 'assets/two-efaa9ab3.svg'), + expectAsset(output, 'snapshots/three.svg', 'three.svg', 'assets/three-63bfb103.svg'), + expectAsset(output, 'snapshots/four.svg', 'four.svg', 'assets/four-360cc920.svg'), ]); }); @@ -79,11 +79,11 @@ describe('rollup-plugin-import-meta-assets', () => { expect(output.length).to.equal(6); expectChunk(output, 'snapshots/transform-bundle.js', 'transform-bundle.js', [ - expectAsset(output, 'snapshots/one.min.svg', 'one.svg', 'assets/one-d81655b9.svg'), - expectAsset(output, 'snapshots/two.min.svg', 'two.svg', 'assets/two-00516e7a.svg'), - expectAsset(output, 'snapshots/three.min.svg', 'three.svg', 'assets/three-0ba6692d.svg'), - expectAsset(output, 'snapshots/four.min.svg', 'four.svg', 'assets/four-a00e2e1d.svg'), - expectAsset(output, 'snapshots/image.jpg', 'image.jpg', 'assets/image-d6eb190c.jpg'), + expectAsset(output, 'snapshots/one.min.svg', 'one.svg', 'assets/one-2d604b7f.svg'), + expectAsset(output, 'snapshots/two.min.svg', 'two.svg', 'assets/two-4f4a5196.svg'), + expectAsset(output, 'snapshots/three.min.svg', 'three.svg', 'assets/three-cb83a3f2.svg'), + expectAsset(output, 'snapshots/four.min.svg', 'four.svg', 'assets/four-97848687.svg'), + expectAsset(output, 'snapshots/image.jpg', 'image.jpg', 'assets/image-c160fa1b.jpg'), ]); }); @@ -108,10 +108,10 @@ describe('rollup-plugin-import-meta-assets', () => { expect(output.length).to.equal(5); expectChunk(output, 'snapshots/transform-bundle-ignored.js', 'transform-bundle-ignored.js', [ - expectAsset(output, 'snapshots/one.min.svg', 'one.svg', 'assets/one-d81655b9.svg'), - expectAsset(output, 'snapshots/two.min.svg', 'two.svg', 'assets/two-00516e7a.svg'), - expectAsset(output, 'snapshots/three.min.svg', 'three.svg', 'assets/three-0ba6692d.svg'), - expectAsset(output, 'snapshots/four.min.svg', 'four.svg', 'assets/four-a00e2e1d.svg'), + expectAsset(output, 'snapshots/one.min.svg', 'one.svg', 'assets/one-2d604b7f.svg'), + expectAsset(output, 'snapshots/two.min.svg', 'two.svg', 'assets/two-4f4a5196.svg'), + expectAsset(output, 'snapshots/three.min.svg', 'three.svg', 'assets/three-cb83a3f2.svg'), + expectAsset(output, 'snapshots/four.min.svg', 'four.svg', 'assets/four-97848687.svg'), ]); }); @@ -126,10 +126,10 @@ describe('rollup-plugin-import-meta-assets', () => { expect(output.length).to.equal(5); expectChunk(output, 'snapshots/multi-level-bundle.js', 'multi-level-bundle.js', [ - expectAsset(output, 'snapshots/one.svg', 'one.svg', 'assets/one-134aaf72.svg'), - expectAsset(output, 'snapshots/two.svg', 'two.svg', 'assets/two-e4de930c.svg'), - expectAsset(output, 'snapshots/three.svg', 'three.svg', 'assets/three-3f2c16b3.svg'), - expectAsset(output, 'snapshots/four.svg', 'four.svg', 'assets/four-b40404a7.svg'), + expectAsset(output, 'snapshots/one.svg', 'one.svg', 'assets/one-824f522a.svg'), + expectAsset(output, 'snapshots/two.svg', 'two.svg', 'assets/two-efaa9ab3.svg'), + expectAsset(output, 'snapshots/three.svg', 'three.svg', 'assets/three-63bfb103.svg'), + expectAsset(output, 'snapshots/four.svg', 'four.svg', 'assets/four-360cc920.svg'), ]); }); @@ -148,10 +148,10 @@ describe('rollup-plugin-import-meta-assets', () => { expect(output.length).to.equal(5); expectChunk(output, 'snapshots/multi-level-bundle.js', 'multi-level-bundle.js', [ - expectAsset(output, 'snapshots/one.svg', 'one.svg', 'assets/one-134aaf72.svg'), - expectAsset(output, 'snapshots/two.svg', 'two.svg', 'assets/two-e4de930c.svg'), - expectAsset(output, 'snapshots/three.svg', 'three.svg', 'assets/three-3f2c16b3.svg'), - expectAsset(output, 'snapshots/four.svg', 'four.svg', 'assets/four-b40404a7.svg'), + expectAsset(output, 'snapshots/one.svg', 'one.svg', 'assets/one-824f522a.svg'), + expectAsset(output, 'snapshots/two.svg', 'two.svg', 'assets/two-efaa9ab3.svg'), + expectAsset(output, 'snapshots/three.svg', 'three.svg', 'assets/three-63bfb103.svg'), + expectAsset(output, 'snapshots/four.svg', 'four.svg', 'assets/four-360cc920.svg'), ]); }); @@ -174,15 +174,15 @@ describe('rollup-plugin-import-meta-assets', () => { 'snapshots/different-asset-levels-bundle.js', 'different-asset-levels-bundle.js', [ - expectAsset(output, 'snapshots/one.svg', 'one-deep.svg', 'assets/one-deep-d40c1b4b.svg'), - expectAsset(output, 'snapshots/two.svg', 'two-deep.svg', 'assets/two-deep-e73b0d96.svg'), + expectAsset(output, 'snapshots/one.svg', 'one-deep.svg', 'assets/one-deep-824f522a.svg'), + expectAsset(output, 'snapshots/two.svg', 'two-deep.svg', 'assets/two-deep-efaa9ab3.svg'), expectAsset( output, 'snapshots/three.svg', 'three-deep.svg', - 'assets/three-deep-801763e8.svg', + 'assets/three-deep-63bfb103.svg', ), - expectAsset(output, 'snapshots/four.svg', 'four-deep.svg', 'assets/four-deep-c65478aa.svg'), + expectAsset(output, 'snapshots/four.svg', 'four-deep.svg', 'assets/four-deep-360cc920.svg'), ], ); }); @@ -214,10 +214,10 @@ describe('rollup-plugin-import-meta-assets', () => { expectChunk(output, 'snapshots/one-bundle.js', 'one-bundle.js', []); expectChunk(output, 'snapshots/two-bundle.js', 'two-bundle.js', []); expectChunk(output, 'snapshots/three-bundle.js', 'three-bundle.js', [ - expectAsset(output, 'snapshots/three.svg', 'three.svg', 'assets/three-3f2c16b3.svg'), + expectAsset(output, 'snapshots/three.svg', 'three.svg', 'assets/three-63bfb103.svg'), ]); expectChunk(output, 'snapshots/four-bundle.js', 'four-bundle.js', [ - expectAsset(output, 'snapshots/four.svg', 'four.svg', 'assets/four-b40404a7.svg'), + expectAsset(output, 'snapshots/four.svg', 'four.svg', 'assets/four-360cc920.svg'), ]); }); diff --git a/packages/rollup-plugin-import-meta-assets/test/snapshots/different-asset-levels-bundle.js b/packages/rollup-plugin-import-meta-assets/test/snapshots/different-asset-levels-bundle.js index 7051bc170..e81cec795 100644 --- a/packages/rollup-plugin-import-meta-assets/test/snapshots/different-asset-levels-bundle.js +++ b/packages/rollup-plugin-import-meta-assets/test/snapshots/different-asset-levels-bundle.js @@ -1,14 +1,14 @@ const nameOne = 'one-name'; -const imageOne = new URL(new URL('assets/one-deep-d40c1b4b.svg', import.meta.url).href, import.meta.url).href; +const imageOne = new URL(new URL('assets/one-deep-824f522a.svg', import.meta.url).href, import.meta.url).href; const nameTwo = 'two-name'; -const imageTwo = new URL(new URL('assets/two-deep-e73b0d96.svg', import.meta.url).href, import.meta.url).href; +const imageTwo = new URL(new URL('assets/two-deep-efaa9ab3.svg', import.meta.url).href, import.meta.url).href; const nameThree = 'three-name'; -const imageThree = new URL(new URL('assets/three-deep-801763e8.svg', import.meta.url).href, import.meta.url).href; +const imageThree = new URL(new URL('assets/three-deep-63bfb103.svg', import.meta.url).href, import.meta.url).href; const nameFour = 'four-name'; -const imageFour = new URL(new URL('assets/four-deep-c65478aa.svg', import.meta.url).href, import.meta.url).href; +const imageFour = new URL(new URL('assets/four-deep-360cc920.svg', import.meta.url).href, import.meta.url).href; console.log({ [nameOne]: imageOne, diff --git a/packages/rollup-plugin-import-meta-assets/test/snapshots/four-bundle.js b/packages/rollup-plugin-import-meta-assets/test/snapshots/four-bundle.js index 91fa57cf2..7b8bb3fe3 100644 --- a/packages/rollup-plugin-import-meta-assets/test/snapshots/four-bundle.js +++ b/packages/rollup-plugin-import-meta-assets/test/snapshots/four-bundle.js @@ -1,4 +1,4 @@ const nameFour = 'four-name'; -const imageFour = new URL(new URL('assets/four-b40404a7.svg', import.meta.url).href, import.meta.url).href; +const imageFour = new URL(new URL('assets/four-360cc920.svg', import.meta.url).href, import.meta.url).href; export { imageFour, nameFour }; diff --git a/packages/rollup-plugin-import-meta-assets/test/snapshots/multi-level-bundle.js b/packages/rollup-plugin-import-meta-assets/test/snapshots/multi-level-bundle.js index 1f3e14c4f..b9cb8de09 100644 --- a/packages/rollup-plugin-import-meta-assets/test/snapshots/multi-level-bundle.js +++ b/packages/rollup-plugin-import-meta-assets/test/snapshots/multi-level-bundle.js @@ -1,14 +1,14 @@ const nameOne = 'one-name'; -const imageOne = new URL(new URL('assets/one-134aaf72.svg', import.meta.url).href, import.meta.url).href; +const imageOne = new URL(new URL('assets/one-824f522a.svg', import.meta.url).href, import.meta.url).href; const nameTwo = 'two-name'; -const imageTwo = new URL(new URL('assets/two-e4de930c.svg', import.meta.url).href, import.meta.url).href; +const imageTwo = new URL(new URL('assets/two-efaa9ab3.svg', import.meta.url).href, import.meta.url).href; const nameThree = 'three-name'; -const imageThree = new URL(new URL('assets/three-3f2c16b3.svg', import.meta.url).href, import.meta.url).href; +const imageThree = new URL(new URL('assets/three-63bfb103.svg', import.meta.url).href, import.meta.url).href; const nameFour = 'four-name'; -const imageFour = new URL(new URL('assets/four-b40404a7.svg', import.meta.url).href, import.meta.url).href; +const imageFour = new URL(new URL('assets/four-360cc920.svg', import.meta.url).href, import.meta.url).href; console.log({ [nameOne]: imageOne, diff --git a/packages/rollup-plugin-import-meta-assets/test/snapshots/simple-bundle.js b/packages/rollup-plugin-import-meta-assets/test/snapshots/simple-bundle.js index 16e8b1a95..13f3c3674 100644 --- a/packages/rollup-plugin-import-meta-assets/test/snapshots/simple-bundle.js +++ b/packages/rollup-plugin-import-meta-assets/test/snapshots/simple-bundle.js @@ -1,7 +1,7 @@ -const justUrlObject = new URL(new URL('assets/one-134aaf72.svg', import.meta.url).href, import.meta.url); -const href = new URL(new URL('assets/two-e4de930c.svg', import.meta.url).href, import.meta.url).href; -const pathname = new URL(new URL('assets/three-3f2c16b3.svg', import.meta.url).href, import.meta.url).pathname; -const searchParams = new URL(new URL('assets/four-b40404a7.svg', import.meta.url).href, import.meta.url).searchParams; +const justUrlObject = new URL(new URL('assets/one-824f522a.svg', import.meta.url).href, import.meta.url); +const href = new URL(new URL('assets/two-efaa9ab3.svg', import.meta.url).href, import.meta.url).href; +const pathname = new URL(new URL('assets/three-63bfb103.svg', import.meta.url).href, import.meta.url).pathname; +const searchParams = new URL(new URL('assets/four-360cc920.svg', import.meta.url).href, import.meta.url).searchParams; console.log({ justUrlObject, diff --git a/packages/rollup-plugin-import-meta-assets/test/snapshots/three-bundle.js b/packages/rollup-plugin-import-meta-assets/test/snapshots/three-bundle.js index fb7158924..ad2b051c8 100644 --- a/packages/rollup-plugin-import-meta-assets/test/snapshots/three-bundle.js +++ b/packages/rollup-plugin-import-meta-assets/test/snapshots/three-bundle.js @@ -1,4 +1,4 @@ const nameThree = 'three-name'; -const imageThree = new URL(new URL('assets/three-3f2c16b3.svg', import.meta.url).href, import.meta.url).href; +const imageThree = new URL(new URL('assets/three-63bfb103.svg', import.meta.url).href, import.meta.url).href; export { imageThree, nameThree }; diff --git a/packages/rollup-plugin-import-meta-assets/test/snapshots/transform-bundle-ignored.js b/packages/rollup-plugin-import-meta-assets/test/snapshots/transform-bundle-ignored.js index 00379c226..648cc7d8a 100644 --- a/packages/rollup-plugin-import-meta-assets/test/snapshots/transform-bundle-ignored.js +++ b/packages/rollup-plugin-import-meta-assets/test/snapshots/transform-bundle-ignored.js @@ -1,7 +1,7 @@ -const justUrlObject = new URL(new URL('assets/one-d81655b9.svg', import.meta.url).href, import.meta.url); -const href = new URL(new URL('assets/two-00516e7a.svg', import.meta.url).href, import.meta.url).href; -const pathname = new URL(new URL('assets/three-0ba6692d.svg', import.meta.url).href, import.meta.url).pathname; -const searchParams = new URL(new URL('assets/four-a00e2e1d.svg', import.meta.url).href, import.meta.url).searchParams; +const justUrlObject = new URL(new URL('assets/one-2d604b7f.svg', import.meta.url).href, import.meta.url); +const href = new URL(new URL('assets/two-4f4a5196.svg', import.meta.url).href, import.meta.url).href; +const pathname = new URL(new URL('assets/three-cb83a3f2.svg', import.meta.url).href, import.meta.url).pathname; +const searchParams = new URL(new URL('assets/four-97848687.svg', import.meta.url).href, import.meta.url).searchParams; const someJpg = new URL('./image.jpg', import.meta.url); console.log({ diff --git a/packages/rollup-plugin-import-meta-assets/test/snapshots/transform-bundle.js b/packages/rollup-plugin-import-meta-assets/test/snapshots/transform-bundle.js index b2673befd..452b1065e 100644 --- a/packages/rollup-plugin-import-meta-assets/test/snapshots/transform-bundle.js +++ b/packages/rollup-plugin-import-meta-assets/test/snapshots/transform-bundle.js @@ -1,8 +1,8 @@ -const justUrlObject = new URL(new URL('assets/one-d81655b9.svg', import.meta.url).href, import.meta.url); -const href = new URL(new URL('assets/two-00516e7a.svg', import.meta.url).href, import.meta.url).href; -const pathname = new URL(new URL('assets/three-0ba6692d.svg', import.meta.url).href, import.meta.url).pathname; -const searchParams = new URL(new URL('assets/four-a00e2e1d.svg', import.meta.url).href, import.meta.url).searchParams; -const someJpg = new URL(new URL('assets/image-d6eb190c.jpg', import.meta.url).href, import.meta.url); +const justUrlObject = new URL(new URL('assets/one-2d604b7f.svg', import.meta.url).href, import.meta.url); +const href = new URL(new URL('assets/two-4f4a5196.svg', import.meta.url).href, import.meta.url).href; +const pathname = new URL(new URL('assets/three-cb83a3f2.svg', import.meta.url).href, import.meta.url).pathname; +const searchParams = new URL(new URL('assets/four-97848687.svg', import.meta.url).href, import.meta.url).searchParams; +const someJpg = new URL(new URL('assets/image-c160fa1b.jpg', import.meta.url).href, import.meta.url); console.log({ justUrlObject, diff --git a/packages/rollup-plugin-polyfills-loader/package.json b/packages/rollup-plugin-polyfills-loader/package.json index 4fb517534..1095fbb53 100644 --- a/packages/rollup-plugin-polyfills-loader/package.json +++ b/packages/rollup-plugin-polyfills-loader/package.json @@ -21,7 +21,7 @@ } }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" }, "scripts": { "test": "mocha test/**/*.test.ts --require ts-node/register", @@ -48,6 +48,6 @@ }, "devDependencies": { "@web/rollup-plugin-html": "^1.10.3", - "rollup": "^2.66.1" + "rollup": "^3.15.0" } } diff --git a/packages/rollup-plugin-polyfills-loader/test/snapshots/flattened.html b/packages/rollup-plugin-polyfills-loader/test/snapshots/flattened.html index 7fd7e2d57..a0b03406e 100644 --- a/packages/rollup-plugin-polyfills-loader/test/snapshots/flattened.html +++ b/packages/rollup-plugin-polyfills-loader/test/snapshots/flattened.html @@ -1,7 +1,7 @@ - + diff --git a/packages/rollup-plugin-polyfills-loader/test/snapshots/no-polyfills.html b/packages/rollup-plugin-polyfills-loader/test/snapshots/no-polyfills.html index a82f98a1d..ca93f8027 100644 --- a/packages/rollup-plugin-polyfills-loader/test/snapshots/no-polyfills.html +++ b/packages/rollup-plugin-polyfills-loader/test/snapshots/no-polyfills.html @@ -1,7 +1,7 @@ - + diff --git a/packages/rollup-plugin-polyfills-loader/test/snapshots/non-flattened.html b/packages/rollup-plugin-polyfills-loader/test/snapshots/non-flattened.html index 28c82362c..2d5a72fa9 100644 --- a/packages/rollup-plugin-polyfills-loader/test/snapshots/non-flattened.html +++ b/packages/rollup-plugin-polyfills-loader/test/snapshots/non-flattened.html @@ -1,7 +1,7 @@ - +