Category "parceljs"

How to import HTML as a string with ParcelJS

I'd like to import HTML files as a string with ParcelJS, like this: import testHTML from './testHTML.html'; document.body.insertAdjacentHTML('afterbegin', test

How can I raise the limit for open files in Ubuntu 20.04 on WSL2?

My setup looks as follows: Windows 10, Release 1909 (Build 18363.1082), using WSL2 with an Ubuntu 20.04 environment. Everything works nicely most of the time, b

How do you use an SVG inline in React using Parcel 2?

Previously in Parcel v1 you could just use something like the @svgr/parcel-plugin-svgr plugin for Parcel. This would give you the ability to use SVGs inline lik

parcel build static/index.html × Build failed. Error: No transformers found for index.x-handlebars-template

I am trying to build an application with handlebars templating and express server. index.html file has all the handlebar templating within script tags with ment

TypeError: (0 , _react.useEffect) is not a function

when in the development environment, my app works just fine. When in the production environment it crashes with the error: Uncaught TypeError: (0 , _react.useE