mwarger / html-webpack-plugin-repro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reproduction of issue

Setup default NX react application within a workspace (this is done in this repo)

Update the project.json to set the generateIndexHtml build option to false. (this is done in this repo)

Update the webpack.config to output a custom HtmlWebpackPlugin (this is done in this repo)

Run the app (npx nx serve test-app)

See error in the browser console

Uncaught SyntaxError: Cannot use 'import.meta' outside a module (at runtime.js:615:30)

About


Languages

Language:TypeScript 74.4%Language:JavaScript 17.2%Language:HTML 6.3%Language:CSS 2.0%