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

feat: Support type=module via scriptLoading option #1672

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

noppa
Copy link
Contributor

@noppa noppa commented Aug 6, 2021

Add third option, 'module', to the scriptLoading option.

This partially fixes issue #1663, which is also where this solution to
the problem was proposed. Although this patch doesn't give a way to
freely set type attribute to any value, setting scriptLoading: "module"
now makes the scripts have attribute type="module", which was
the original motivation behind the issue.

Add third option, `'module'`, to the `scriptLoading` option.

This partially fixes issue jantimon#1663, which is also where this solution to
the problem was proposed. Although this patch doesn't give a way to
freely set `type` attribute to any value, setting `scriptLoading:
"module" now makes the scripts have attribute `type="module"`, which was
the original motivation behind the issue.
index.js Show resolved Hide resolved
@jantimon jantimon merged commit 1e42625 into jantimon:main Oct 25, 2021
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