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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 bug report
{ "name": "parcel-html-import-issue", "version": "1.0.0", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "parcel index.html" }, "author": "", "license": "ISC", "description": "", "devDependencies": { "parcel-bundler": "^1.6.2" } }
index.html
<html> <head> <script src="index.js"></script> </head> </html>
test.html
<div> test </div>
index.js
import testHtml from './test.html' console.log(testHtml)
Should be URI to html file, but produces module error:
Here's the project for good measure: parcel-html-import-issue.zip
The text was updated successfully, but these errors were encountered:
I think it is not a bug, but feature request. Maybe you can take a look at this PR: Import/require html from js. @otoinsa
Sorry, something went wrong.
Closing. An HTML bundler loader was added to Parcel a while ago.
No branches or pull requests
🐛 bug report
index.html
test.html
index.js
🤔 Expected Behavior
Should be URI to html file, but produces module error:
Here's the project for good measure:
parcel-html-import-issue.zip
The text was updated successfully, but these errors were encountered: