Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lit/lit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: lit@2.2.8
Choose a base ref
...
head repository: lit/lit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: lit@2.3.0
Choose a head ref

Commits on Jul 25, 2022

  1. [lit-html] Provide directive exports via async-directive (#3003)

    [lit-html] Provide directive exports via async-directive. Fixes #2790. This is being done for convenience.
    Steve Orvell authored Jul 25, 2022
    Copy the full SHA
    daddeb3 View commit details
  2. Copy the full SHA
    d1ae0ff View commit details

Commits on Jul 26, 2022

  1. Copy the full SHA
    27e08e5 View commit details
  2. [internal/scripts] Add markdownFile option to release-image script (#…

    …3148)
    
    If markdownFile is provided, the release image will be generated from
    the contents. This allows:
    
    1. Using the "Version Packages" description to generate an image.
    2. A workaround for providing custom release-image contents.
    AndrewJakubowicz authored Jul 26, 2022
    Copy the full SHA
    41c85d4 View commit details
  3. [infra] Integrate release-image into a Github Action (#3176)

    * Add Generate Release Image Action that runs when changelog files are modified
    AndrewJakubowicz authored Jul 26, 2022
    Copy the full SHA
    6e0d0b4 View commit details
  4. Copy the full SHA
    18f8a90 View commit details

Commits on Jul 28, 2022

  1. Export StaticValue from lit-html/static (#3186)

    * Export StaticValue from lit-html/static
    
    Class properties initialized with a literal are implicitly typed as
    `any` because `StaticValue` is not exported.
    
    * Add changeset
    
    * Update .changeset/hip-eels-ring.md
    
    Co-authored-by: Augustine Kim <augustinekim@google.com>
    
    * Remove unnecessary re-export for StaticValue type
    
    Co-authored-by: Augustine Kim <augustinekim@google.com>
    dfreedm and augustjk authored Jul 28, 2022
    Copy the full SHA
    3766ae4 View commit details
  2. Copy the full SHA
    84437af View commit details

Commits on Aug 4, 2022

  1. Fix typo in comment (#3193)

    s/comment comment/comment/
    
    Upstreaming cl/465058282
    rictic authored Aug 4, 2022
    Copy the full SHA
    325db3c View commit details
  2. [core/ssr] Add Node builds that don't explode (#3156)

    ### Background
    
    Before this PR, importing Lit with Node causes errors such as `window is not defined`. The only way to load Lit was to first ensure that the `dom-shim.js` module provided by the `@lit-labs/ssr` package was loaded, which defines `window` plus APIs like `HTMLElement` and `customElements`.
    
    This meant that using Lit in frameworks such as Next did not work out-of-the-box _even when only client-side rendering is needed_.
    
    ### This change
    
    After this PR, Lit can be imported from Node without errors, and custom elements can be defined as no-ops.
    
    This doesn't remove the need for loading the DOM shim shim when SSR is actually needed, but it does give us compatibility at least for client-side rendering in frameworks like Next, without the user needing to do anything special.
    
    This works by adding a Node-specific Rollup build and a `node` export condition to `lit-html` and `@lit/reactive-element`. Neither `lit-element` nor `lit` need a Node build, because only the underlying 2 libraries currently need Node-specific behavior.
    
    This only defines `customElements` as new globals. It does not define `window`, `HTMLElement`, or any other APIs. This way, we won't affect the behavior of libraries that detect whether they are in Node vs the browser by checking for a `window` global.
    
    For testing, I've added a `node-imports.ts` file to each package, and added a new `node:test` script which executes that module with Node. This confirms that Node doesn't crash on import.
    
    Fixes #3079
    
    ### Size
    
    This actually slightly drops the size of the main `lit-html.js` and `reactive-element.js` production build files:
    
    | File                | Old size (raw/gzip/brotli)      | New size (raw/gzip/brotli) |
    | ------------------- | -------------- | -------------- |
    | lit-html.js         | 8.68 / 3.45 / 3.13 | 8.02 / 3.38 / 3.07 |
    | reactive-element.js | 5.97 / 2.17 / 1.93 | 5.95 / 2.17 / 1.92 |
    aomarks authored Aug 4, 2022
    Copy the full SHA
    ae6f680 View commit details

Commits on Aug 5, 2022

  1. Copy the full SHA
    6361a4b View commit details
  2. In DEV_MODE, render a warning instead of rendering a template's host …

    …in the template. (#3199)
    
    * In DEV_MODE, render a warning instead of rendering a template's host in the template.
    
    Most commonly this would happen when rendering `${this}` in a LitElement's template, which has the counterintuitive behavior of removing the element from the DOM, because when rendering the element's template we attach it into its own shadow root, which removes it from the DOM, causing it simply disappear. This is especially problematic with a fast HMR system.
    
    * Log a warning as well
    rictic authored Aug 5, 2022
    Copy the full SHA
    0725fdb View commit details
  3. Copy the full SHA
    0162fba View commit details

Commits on Aug 6, 2022

  1. Copy the full SHA
    2346231 View commit details
  2. Copy the full SHA
    19d7bd2 View commit details

Commits on Aug 10, 2022

  1. Batch of virtualizer test coverage: flow layout, visibilitychanged, r…

    …angechanged (#3206)
    
    * Added initial test for flow layout behavior and item visibility.
    * Covering more scrollToIndex test cases for flow layout.
    * Added resize-based VisibilityChanged event test.
    * Modified flow tests to use larger items collection.
    * Added rangechange and visibilitychange tests and fixed up tests.
    * Replaced item creation with array() helper.
    * Removed redundant smoke test for visibilitychanged events.
    * Removed vagueness around rangechange event comments and overhang size.
    usergenic authored Aug 10, 2022
    Copy the full SHA
    42b1ae8 View commit details

Commits on Aug 11, 2022

  1. Copy the full SHA
    7848b72 View commit details
  2. [labs/react] Fix for #2799: add support for properties with custom ac…

    …cessors (#2800)
    
    * fix(labs/react): #2799 - add support for properties with custom accessors
    
    * Add changeset
    
    Co-authored-by: Justin Fagnani <justinfagnani@google.com>
    lideen and justinfagnani authored Aug 11, 2022
    Copy the full SHA
    043d9c8 View commit details

Commits on Aug 12, 2022

  1. Also re-run release image generator on pushes (#3214)

    This way it will run not only when a release PR is opened, but also when it's updated.
    aomarks authored Aug 12, 2022
    Copy the full SHA
    b70f777 View commit details
  2. Copy the full SHA
    2674a74 View commit details
  3. Version Packages (#3184)

    Co-authored-by: Alexander Marks <aomarks@google.com>
    lit-robot and aomarks authored Aug 12, 2022
    Copy the full SHA
    41ab4c4 View commit details
Showing with 1,334 additions and 355 deletions.
  1. +2 −0 .eslintignore
  2. +8 −0 .github/ISSUE_TEMPLATE/feature-request.yaml
  3. +49 −0 .github/workflows/release-image.yaml
  4. +3 −3 .github/workflows/tests.yml
  5. +2 −0 .prettierignore
  6. +7 −1 CONTRIBUTING.md
  7. +2 −1 package.json
  8. +77 −35 packages/internal-scripts/src/release-image.ts
  9. +1 −1 packages/labs/cli/src/lib/generate/generate.ts
  10. +2 −2 packages/labs/cli/src/test/uvu-wrapper.ts
  11. +3 −3 packages/labs/context/src/lib/controllers/context-provider.ts
  12. +9 −0 packages/labs/eleventy-plugin-lit/CHANGELOG.md
  13. +2 −2 packages/labs/eleventy-plugin-lit/package.json
  14. +3 −2 packages/labs/eleventy-plugin-lit/src/index.ts
  15. +6 −0 packages/labs/react/CHANGELOG.md
  16. +2 −2 packages/labs/react/package.json
  17. +7 −23 packages/labs/react/src/create-component.ts
  18. +19 −17 packages/labs/react/src/test/create-component_test.tsx
  19. +13 −0 packages/labs/ssr/CHANGELOG.md
  20. +1 −1 packages/labs/ssr/README.md
  21. +4 −4 packages/labs/ssr/package.json
  22. +2 −0 packages/labs/ssr/src/lib/dom-shim.ts
  23. +1 −1 packages/labs/ssr/src/lib/module-loader.ts
  24. +11 −0 packages/labs/testing/CHANGELOG.md
  25. +2 −2 packages/labs/testing/package.json
  26. +3 −2 packages/labs/testing/src/lib/lit-ssr-plugin.ts
  27. +1 −0 packages/labs/testing/tsconfig.json
  28. +57 −40 packages/labs/virtualizer/src/test/helpers.ts
  29. +207 −0 packages/labs/virtualizer/src/test/layouts/flow.test.ts
  30. +18 −26 packages/labs/virtualizer/src/test/scenarios/element-and-directive-parity.test.ts
  31. +84 −0 packages/labs/virtualizer/src/test/scenarios/range-changed-events.test.ts
  32. +5 −94 packages/labs/virtualizer/src/test/scenarios/smoke.test.ts
  33. +47 −20 packages/labs/virtualizer/src/test/scenarios/testing-setup.test.ts
  34. +112 −0 packages/labs/virtualizer/src/test/scenarios/visibility-changed-events.test.ts
  35. +12 −1 packages/lit-element/package.json
  36. +39 −0 packages/lit-element/src/test/node-imports.ts
  37. +1 −0 packages/lit-html/.gitignore
  38. +16 −0 packages/lit-html/CHANGELOG.md
  39. +45 −4 packages/lit-html/package.json
  40. +1 −0 packages/lit-html/rollup.config.js
  41. +1 −1 packages/lit-html/src/async-directive.ts
  42. +5 −2 packages/lit-html/src/directives/async-replace.ts
  43. +1 −2 packages/lit-html/src/directives/until.ts
  44. +40 −16 packages/lit-html/src/lit-html.ts
  45. +1 −1 packages/lit-html/src/static.ts
  46. +5 −2 packages/lit-html/src/test/directive-helpers_test.ts
  47. +37 −0 packages/lit-html/src/test/node-imports.ts
  48. +16 −0 packages/lit/CHANGELOG.md
  49. +16 −5 packages/lit/package.json
  50. +47 −0 packages/lit/src/test/node-imports.ts
  51. +10 −0 packages/localize/CHANGELOG.md
  52. +4 −3 packages/localize/package.json
  53. +2 −0 packages/localize/tsconfig.json
  54. +1 −0 packages/reactive-element/.gitignore
  55. +10 −0 packages/reactive-element/CHANGELOG.md
  56. +32 −4 packages/reactive-element/package.json
  57. +1 −0 packages/reactive-element/rollup.config.js
  58. +6 −3 packages/reactive-element/src/css-tag.ts
  59. +2 −2 packages/reactive-element/src/decorators/custom-element.ts
  60. +4 −1 packages/reactive-element/src/decorators/query-assigned-elements.ts
  61. +45 −23 packages/reactive-element/src/reactive-element.ts
  62. +32 −0 packages/reactive-element/src/test/node-imports.ts
  63. +73 −0 packages/reactive-element/src/test/reactive-element_test.ts
  64. +54 −0 rollup-common.js
  65. +3 −3 scripts/update-version-variables.js
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -62,6 +62,7 @@ packages/lit-element/polyfill-support.*
packages/lit-element/private-ssr-support.*

packages/lit-html/development/
packages/lit-html/node/
packages/lit-html/version-stability-build/
packages/lit-html/directives/
packages/lit-html/node_modules/
@@ -118,6 +119,7 @@ packages/localize-tools/testdata/*/output/

packages/reactive-element/decorators/
packages/reactive-element/development/
packages/reactive-element/node/
packages/reactive-element/test/
packages/reactive-element/css-tag.*
packages/reactive-element/decorators.*
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yaml
Original file line number Diff line number Diff line change
@@ -2,6 +2,14 @@ name: 🦄 Feature Request
description: Request a new feature for Lit or a Lit library/tool.

body:
- type: checkboxes
attributes:
label: Should this be an RFC?
description: |
Lit uses the [Lit RFC Process](https://github.com/lit/rfcs) to propose and discuss substantial chnages. Significant changes should not be opened as feature request issues here, but follow the RFC process at https://github.com/lit/rfcs.
options:
- label: This is not a substantial change
required: true
- type: dropdown
id: affected
validations:
49 changes: 49 additions & 0 deletions .github/workflows/release-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Generate Release Image

on:
pull_request:
paths:
- '**/CHANGELOG.md'
push:
paths:
- '**/CHANGELOG.md'

jobs:
release-image:
if: github.repository == 'lit/lit'

name: Generate Release Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 16
cache: 'npm'
cache-dependency-path: package-lock.json

- uses: google/wireit@setup-github-actions-caching/v1

- name: NPM install
run: npm ci

- name: Build release-image script
working-directory: packages/internal-scripts
run: npm run build

- name: Create release image
run: |
# Store the PR body contents containing the changelog in 'release.md'
cat <<'EOF' > release.md
${{ github.event.pull_request.body }}
EOF
# Only render the pull request content including and after the "#
# Releases" heading.
node_modules/.bin/release-image -m <(sed -n '/# Releases/,$p' release.md)
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: releaseimage
path: release.png
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -25,14 +25,14 @@ jobs:
git checkout ${{ github.sha }}
npm ci
- name: Lint
run: npm run lint

- name: Changeset
# Enforce that all PRs that change packages need changesets. Changes
# without changesets result in this job failing.
run: npm run changeset status -- --since=main

- name: Lint
run: npm run lint

tests-local:
runs-on: ubuntu-latest

2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -62,6 +62,7 @@ packages/lit-element/polyfill-support.*
packages/lit-element/private-ssr-support.*

packages/lit-html/development/
packages/lit-html/node/
packages/lit-html/version-stability-build/
packages/lit-html/directives/
packages/lit-html/node_modules/
@@ -104,6 +105,7 @@ packages/localize-tools/testdata/*/output/

packages/reactive-element/decorators/
packages/reactive-element/development/
packages/reactive-element/node/
packages/reactive-element/test/
packages/reactive-element/css-tag.*
packages/reactive-element/decorators.*
8 changes: 7 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -16,11 +16,17 @@ Please search though open and closed issues to see if a similar issue already ex

Occasionally we'll close issues if they appear stale or are too vague - please don't take this personally! Please feel free to re-open issues we've closed if there's something we've missed and they still need to be addressed.

## RFCs

The Lit project handles "significant" changes and feature requests via our [RFC (Request for Comment) Process](https://github.com/lit/rfcs).

Medium-to-large feature requests should be done via RFC, and feature request issues may be closed after asking that they be submitted as an RFC. If you're wondering whether there's interest in an idea before creating an RFC, file an [RRFC issue](https://github.com/lit/rfcs#before-opening-an-rfc) in https://github.com/lit/rfcs to discuss it.

## Pull Requests

Pull requests are greatly appreciated! To ensure a smooth review process, please follow these steps:

1. Make sure there's an open issue that the PR addresses. Add "Fixes #(issue number)" to the PR description.
1. Make sure there's an open issue or RFC that the PR addresses. If there's an issue, add "Fixes #(issue number)" to the PR description.
2. Please discuss the general shape of the change ahead of time. This can save much time for reviewers and submitters alike. Many times there may be existing ideas on how to handle an issue that are not fully written out, and asking about it will bring out more details.
3. All PRs that change behavior or fix bugs should have new or updated tests.
4. Try to create a set of descriptive commits that each do one focused change. Avoid commits like "oops", and prefer commits like "Added method foo to Bar".
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -170,7 +170,8 @@
"./packages/labs/gen-utils:test",
"./packages/labs/gen-wrapper-angular:test",
"./packages/labs/gen-wrapper-react:test",
"./packages/labs/gen-wrapper-vue:test"
"./packages/labs/gen-wrapper-vue:test",
"./packages/labs/testing:test"
]
}
},
112 changes: 77 additions & 35 deletions packages/internal-scripts/src/release-image.ts
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ import {marked} from 'marked';
import puppeteer from 'puppeteer';
import {readFile} from 'fs/promises';
import path from 'path';
import {existsSync, readFileSync} from 'fs';

const optionDefinitions = [
{
@@ -20,48 +21,47 @@ const optionDefinitions = [
multiple: true,
},
{name: 'versions', alias: 'v', type: String, multiple: true},
{name: 'markdownFile', alias: 'm', type: String},
];

interface CliOptions {
files?: string[];
versions?: string[];
markdownFile?: string;
}

/**
* A cache of the parsed changelogs such that a package may be referenced
* multiple times to render multiple versions.
*/
const CHANGELOG_CACHE = new Map<string, Changelog>();

export const run = async () => {
const options = commandLineArgs(optionDefinitions);
const options = commandLineArgs(optionDefinitions) as CliOptions;

if (options.markdownFile && options.files) {
exitWithUsageError();
}

if (options.markdownFile) {
if (!existsSync(options.markdownFile)) {
console.error(
`Could not find markdown file at path: '${options.markdownFile}'`
);
process.exit(1);
}
const contents = readFileSync(options.markdownFile, {encoding: 'utf-8'});
await generateReleaseImage(marked(contents));
process.exit();
}

if (
!options.files ||
!Array.isArray(options.files) ||
(Array.isArray(options.versions) &&
options.versions.length !== options.files.length)
) {
console.error(
`
USAGE
release-image CHANGELOG_PATH
release-image (-f CHANGELOG_PATH [-v VERSION])...
EXAMPLES
To generate the release image for the reactive-element package:
release-image packages/reactive-element/CHANGELOG.md
For multiple packages in a single image:
release-image reactive-element/CHANGELOG.md lit-html/CHANGELOG.md
To generate an image composed of specific version numbers, including
multiple versions of the same package:
release-image -f reactive-element/CHANGELOG.md -v 3.2.0 \\
-f lit-html/CHANGELOG.md -v 2.0.1 \\
-f lit-html/CHANGELOG.md -v 2.0.0
`.trim()
);
process.exit(1);
exitWithUsageError();
}

const releasesToRender: Release[] = [];
@@ -97,7 +97,22 @@ EXAMPLES
release.title = changelog.packageName;
releasesToRender.push(release);
}
await generateReleaseImage(
releasesToRender
.map(
({title, body, version}) =>
`<h2><span class="name">${title}</span> ${version}</h2>
${marked(body)}`
)
.join('')
);
process.exit();
};

/**
* Takes contents and generates an image.
*/
async function generateReleaseImage(contents: string) {
// colors taken from https://github.com/dracula/dracula-theme
const html = `
<!doctype html>
@@ -134,13 +149,7 @@ EXAMPLES
</style>
</head>
<body>
${releasesToRender
.map(
({title, body, version}) =>
`<h2><span class="name">${title}</span> ${version}</h2>
${marked(body)}`
)
.join('')}
${contents}
</body>
</html>
`;
@@ -166,8 +175,41 @@ EXAMPLES
});
console.log(`Wrote screenshot to '${imageFileName}'`);
await browser.close();
process.exit();
};
}

function exitWithUsageError(): never {
console.error(
`
USAGE
release-image CHANGELOG_PATH
release-image (-f CHANGELOG_PATH [-v VERSION])...
release-image --markdownFile MARKDOWN_PATH
EXAMPLES
To generate the release image for the reactive-element package:
release-image packages/reactive-element/CHANGELOG.md
For multiple packages in a single image:
release-image reactive-element/CHANGELOG.md lit-html/CHANGELOG.md
To generate an image composed of specific version numbers, including
multiple versions of the same package:
release-image -f reactive-element/CHANGELOG.md -v 3.2.0 \\
-f lit-html/CHANGELOG.md -v 2.0.1 \\
-f lit-html/CHANGELOG.md -v 2.0.0
To pass arbitrary contents into the image <body>, use the --markdownFile
option (or -m):
release-image -m releaseContents.md
`.trim()
);
process.exit(1);
}

const latestVersion = {};

2 changes: 1 addition & 1 deletion packages/labs/cli/src/lib/generate/generate.ts
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ interface GenerateCommand extends Omit<ResolvedCommand, 'run'> {

const frameworkCommands = {
react: reactCommand,
vue: vueCommand
vue: vueCommand,
};

type FrameworkName = keyof typeof frameworkCommands;
4 changes: 2 additions & 2 deletions packages/labs/cli/src/test/uvu-wrapper.ts
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@ import * as uvu from 'uvu';

const IN_CI = process.env['CI'];
// CI machines are sometimes super slow, so give them plenty of time.
// When testing locally on Windows, some CLI tests take up to 10s.
const TIMEOUT = IN_CI ? 60_000 : 10_000;
// When testing locally on Windows, some CLI tests take up to 30s.
const TIMEOUT = IN_CI ? 60_000 : 30_000;

/**
* A safer wrapper around uvu.suite.
6 changes: 3 additions & 3 deletions packages/labs/context/src/lib/controllers/context-provider.ts
Original file line number Diff line number Diff line change
@@ -56,11 +56,11 @@ export class ContextProvider<T extends ContextKey<unknown, unknown>>
public onContextRequest = (
ev: ContextRequestEvent<ContextKey<unknown, unknown>>
): void => {
// Only call the callback if the context matches.
// Also, in case an element is a consumer AND a provider
// Only call the callback if the context matches.
// Also, in case an element is a consumer AND a provider
// of the same context, we want to avoid the element to self-register.
// The check on composedPath (as opposed to ev.target) is to cover cases
// where the consumer is in the shadowDom of the provider (in which case,
// where the consumer is in the shadowDom of the provider (in which case,
// event.target === this.host because of event retargeting).
if (ev.context !== this.context || ev.composedPath()[0] === this.host) {
return;
9 changes: 9 additions & 0 deletions packages/labs/eleventy-plugin-lit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @lit-labs/eleventy-plugin-lit

## 0.2.3

### Patch Changes

- [#3203](https://github.com/lit/lit/pull/3203) [`23462312`](https://github.com/lit/lit/commit/234623129990c19c535eb36d2bcab38f3842ff82) - Use file urls for resolved module paths for Windows compatibility

- Updated dependencies [[`daddeb34`](https://github.com/lit/lit/commit/daddeb346a2f454b25a6a5d1722683197f25fbcd), [`6361a4b4`](https://github.com/lit/lit/commit/6361a4b4a589465cf6836c8454ed8ca4521d7b4d), [`ae6f6808`](https://github.com/lit/lit/commit/ae6f6808f539254b72ec7efcff34b812173abe64)]:
- lit@2.3.0

## 0.2.2

### Patch Changes
4 changes: 2 additions & 2 deletions packages/labs/eleventy-plugin-lit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-labs/eleventy-plugin-lit",
"version": "0.2.2",
"version": "0.2.3",
"description": "Eleventy plugin for rendering Lit components.",
"author": "Google LLC",
"license": "BSD-3-Clause",
@@ -91,7 +91,7 @@
},
"dependencies": {
"@lit-labs/ssr": "^2.0.1",
"lit": "^2.0.2"
"lit": "^2.3.0"
},
"devDependencies": {
"@11ty/eleventy": "^1.0.0",
5 changes: 3 additions & 2 deletions packages/labs/eleventy-plugin-lit/src/index.ts
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
*/

import * as path from 'path';
import {pathToFileURL} from 'url';
import {Worker} from 'worker_threads';
import type {Message} from './worker/types.js';

@@ -208,8 +209,8 @@ module.exports = {
return;
}

const resolvedComponentModules = componentModules.map((module) =>
path.resolve(process.cwd(), module)
const resolvedComponentModules = componentModules.map(
(module) => pathToFileURL(path.resolve(process.cwd(), module)).href
);

switch (mode) {
Loading