Skip to content

Add publicPath to type="module" scripts #4021

Open
@brion-fuller

Description

@brion-fuller

What problem does this feature solve?

This will give the ability to web components to be imported in the browser and have things like static assets properly loaded.

What does the proposed API look like?

No api change it's a small update in the setPublicPath file. I can make a pull request for it.

Idea is to add

if ((i = import.meta) && (i = i.url.match(/(. \/)[^/] \.js(\?.*)?$/))) {
    __webpack_require__.p = i[1] // eslint-disable-line
  }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions