You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inline script tags are not processed and imported scripts are not bundled or copied to the dist directory
馃 Expected Behavior
Script tag content is bundled the same way that external scripts are bundled and bundled project functions.
馃槸 Current Behavior
importedScript.js
console.log('hello!')
index.html
<html><head>
<script type="module">
import './importedScript.js`;
// prints 'hello' in normal, statically served case
// 404s when fetching 'importedScript.js' case after being bundled
</script>
</head></html>
馃拋 Possible Solution
Pull the script tag content out into a separate file and include that or bundle and inline the bundled script in the final target.
馃敠 Context
Bundling a project that used inline scripts to initialize an application
The text was updated successfully, but these errors were encountered:
馃悰 bug report
Inline script tags are not processed and imported scripts are not bundled or copied to the
dist
directory馃 Expected Behavior
Script tag content is bundled the same way that external scripts are bundled and bundled project functions.
馃槸 Current Behavior
importedScript.js
index.html
馃拋 Possible Solution
Pull the script tag content out into a separate file and include that or bundle and inline the bundled script in the final target.
馃敠 Context
Bundling a project that used inline scripts to initialize an application
The text was updated successfully, but these errors were encountered: