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

fix #381 #382 #383

Merged
merged 1 commit into from
Aug 6, 2023
Merged

fix #381 #382 #383

merged 1 commit into from
Aug 6, 2023

Conversation

loynoir
Copy link
Contributor

@loynoir loynoir commented Aug 6, 2023

Base on assumption ./dist/es-module-shims.js ./dist/es-module-shims.debug.js ./dist/es-module-shims.wasm.js have same type.

Verified with npm pack and https://arethetypeswrong.github.io,

Base on assumption window.esmsInitOptions = {} is valid, like example

  • Better type
   * Enable polyfill features.
   * Currently supports ['css-modules', 'json-modules']
   */
-  polyfillEnable?: string[];
+  polyfillEnable?: Array<'css-modules' | 'json-modules'>

@guybedford
Copy link
Owner

Thanks for the PR.

@guybedford guybedford merged commit dbd348c into guybedford:main Aug 6, 2023
7 checks passed
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.

there should be less require property No types
2 participants