<source> tags are not identified and bundled if they're used under <video> tags #4777
-
🐛 bug reportIf I have the following html:
Parcel will not detect the assets in the 🎛 Configuration (.babelrc, package.json, cli command)I'm not specifying a babel config. 🤔 Expected BehaviorParcel should detect the source files in 😯 Current BehaviorThe tag is left untouched and the generated html file has a path that references an asset not in the bundle. 💁 Possible SolutionIdeally I'd love to see the fix for 🌍 Your Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Does this work with Parcel 2? Should work afaik: https://github.com/parcel-bundler/parcel/blob/v2/packages/transformers/html/src/dependencies.js#L14 You should probably also use relative paths |
Beta Was this translation helpful? Give feedback.
-
This works in parcel2, but oddly now parcel maps these to absolute paths? so it becomes Max |
Beta Was this translation helpful? Give feedback.
-
@maxweisel I'm not sure if this trick still works but you could try with |
Beta Was this translation helpful? Give feedback.
-
No dice, but it seems any value I pass to --public-url is ignored. I'm currently running |
Beta Was this translation helpful? Give feedback.
Does this work with Parcel 2?
Should work afaik: https://github.com/parcel-bundler/parcel/blob/v2/packages/transformers/html/src/dependencies.js#L14 You should probably also use relative paths