-
Notifications
You must be signed in to change notification settings - Fork 4
Compatibility for projects without index.html #2
Comments
Thanks! I'm glad you found it as able to fill a need. Do you have an example you could point me to? I've not done much with pure js, which looks to be a js based templating engine, which likely means a couple of things about why it isn't likely working "out of the box". I'm guessing that the implementation of parcel as you're describing it is not directly talking to an |
No, i am not talking of some framework. Sorry for the confusion. I am just building simple plain javascript with parcel. I have trouble with ie11 because of fetch and promise and currently looking for some fix I can include into my project. But as I understand, your fix needs to adjust the .html file. is this correct? |
Aha I see, more vanilla js than "pure js", as you're performing an arbitrary js bundle build, which means this plugin isn't detecting the Is there a particular reason you're not using your We could potentially configure this plugin to handle other entry points (such as a js only build), but as there wouldn't be something distinguishing that from a non-browser js bundle, such as for node.js, it could get more complicated pretty quickly. Parcel's approach is to only apply browser based concerns for entry points that are html, so I'm inclined to keep consistent with that. To address your immediate situation, you could manually generate the polyfill file. The steps to take would be:
If you want to be a nice lazy developer, you could view a copy of the built version of the "goodie bag" "in the wild" here: A note on |
adds blurb under usage re: non-html approach, with link to issue #2
After thinking about this for a little while, I'm not sure a non-html bundled package is a usage path I want to support as part of this plugin. This could change in the future, but the steps to take to achieve the same are well documented in the above comment and have been called out in the usage paragraph in the readme. |
first of all: it's great that this project exists!
i use parcel to compile and bundle pure js. then the goodie bag doesn't kick pure ...
do you have a workaround for me how to use dsa anyway?
The text was updated successfully, but these errors were encountered: