Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(wmr) Fix double quotes imports with bundle-plugin #409

Merged
merged 2 commits into from
Mar 9, 2021

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Mar 8, 2021

JavaScript imports can use either single or double quotes:

import 'bundle:./file';
import "bundle:./file";

Currently, when using double quotes, the import fail because it's being translated to:

import "data:text/javascript,export default"./file""

With this PR, it'll be translated to:

import "data:text/javascript,export default%22./file%22"

JavaScript imports can use either single or double quotes:

```js
import 'bundle:./file';
import "bundle:./file";
```
@changeset-bot
Copy link

changeset-bot bot commented Mar 8, 2021

🦋 Changeset detected

Latest commit: f5fb546

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wmr Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JoviDeCroock JoviDeCroock merged commit 2102ffb into preactjs:main Mar 9, 2021
@github-actions github-actions bot mentioned this pull request Mar 9, 2021
@aduh95 aduh95 deleted the bundle-double-quote branch March 9, 2021 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants