Skip to content

Commit

Permalink
Merge pull request #500 from icelam/docs-dynamic-import-limitation
Browse files Browse the repository at this point in the history
docs: document limitation for dynamic import syntax
  • Loading branch information
icelam committed May 5, 2024
2 parents bbcf0fc + ed35bef commit ba2f13d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ module.exports = {
## Known limitations
1. This plugin does not transform Web Worker syntax like `new Worker(new URL('./worker.js', import.meta.url));``. It simply embeds the source code processed by webpack into HTML files, and emits any JavaScript files that is not processed by the plugin.
2. This plugin is designed to embed script content into HTML files for deployment to environments where only a single file can be uploaded, or where the script file itself is small enough that it doesn't warrant an additional HTTP request. It is not intended for use in development, and may fail if HMR is enabled.
3. This plugin does not support inlining scripts that are dynamically imported (the `import()` syntax). The reason is explained in [this issue](https://github.com/icelam/html-inline-script-webpack-plugin/issues/494#issuecomment-2016902280).

## Contributors

Expand Down

0 comments on commit ba2f13d

Please sign in to comment.