We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development server inexplicably strips type="module" from <script> tag, breaking the page. The normal build process does not do that.
No config.
Input HTML:
<html lang="en"> <head> <meta charset="utf-8"/> <title>My First Parcel App</title> <script src="https://unpkg.com/petite-vue" defer init></script> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.15.0/cdn/themes/light.css" /> <script type="module" src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.15.0/cdn/shoelace-autoloader.js"></script> <style> #graph { border: 1px solid #e0e0e0; width: 100%; height: 99%; } </style> </head> <body> <div v-scope="{ count: 0 }"> {{ count }} <sl-button @click="count++">inc</sl-button> </div> <div id="graph"></div> <sl-drawer label="Drawer" class="drawer-overview"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. <sl-button slot="footer" variant="primary">Close</sl-button> </sl-drawer> </body> </html>
Don't remove type=module
type=module is removed from the script tag in development server build only.
Can't leverage dev server
npx parcel --no-cache app/index.html
Mac OS
The text was updated successfully, but these errors were encountered:
Further to this, parcel watch behaves the same way, breaking the app, while parcel build works correctly.
parcel watch
parcel build
Sorry, something went wrong.
No branches or pull requests
馃悰 bug report
Development server inexplicably strips type="module" from <script> tag, breaking the page. The normal build process does not do that.
馃帥 Configuration (.babelrc, package.json, cli command)
No config.
Input HTML:
馃 Expected Behavior
Don't remove type=module
馃槸 Current Behavior
type=module is removed from the script tag in development server build only.
馃拋 Possible Solution
馃敠 Context
Can't leverage dev server
馃捇 Code Sample
npx parcel --no-cache app/index.html
馃實 Your Environment
Mac OS
The text was updated successfully, but these errors were encountered: