Questions tagged [parceljs]

Blazing fast, zero configuration web application bundler

Official website

https://parceljs.org/

682 questions
0
votes
0 answers

What is the difference between parcel serve vs parcel build when it comes to bundling?

Hi Im new to Parcel and trying to migrate an existing project from Webpack. I was able to quickly get things working until I realised that I get a module not found error. This error only shows up in parcel build. I noticed a circular import and…
blessanm86
  • 31,439
  • 14
  • 68
  • 79
0
votes
0 answers

parcel not rebuild on changes

I'm using the parcel with web components and after the application starts, when I change the html of some component it doesn't rebuild, for example I change a div tag to p, in the browser it still remains as a div
0
votes
1 answer

How to output individual files without subfolder with ParcelJS 2?

I'm using Parcel 2. I have set up a folder structure for separate JS and Scss files. I can get Parcel to bundle them and output the files, however, they end up in a subfolder. I want the files to be in the root of the output…
bprdev
  • 693
  • 9
  • 12
0
votes
1 answer

Why am I getting this error when trying to push to github after committing?

I'm working on a Javascript project using parcel as a bundler, whenever I try to push to the repo I get the following error in the terminal. Counting objects: 40, done. Delta compression using up to 8 threads. Compressing objects: 100% (40/40),…
0
votes
1 answer

Parceljs 2 and transpiling a node module

I am using Parcel version 2 to build my JavaScript app, and one of the modules in node_modules is CommonJS but uses "let" and "const" keywords, so I need to transpile it so it is compatible with IE 11, which we are still supporting for a few more…
Paul Lynch
  • 1,297
  • 13
  • 20
0
votes
1 answer

Is there a way to include only one module in the bundle?

I'm building a microservice backend with lerna, parcel and docker. I have multiple microservices, which each rely on some common code in a “commons” package in the monorepo. This commons package is never published to NPM. Therefore, it works fine in…
Jake
  • 2,090
  • 2
  • 11
  • 24
0
votes
0 answers

PostCSS or Parcel not compiling tailwind CSS

I am currently trying to create a web application, using TailwindCSS for styles, PostCSS as the processor and parcel-bundler as a bundler, based off this boilerplate from GitHub. For some reason, every time I run yarn build, everything compiles…
Meowmi
  • 322
  • 2
  • 11
0
votes
1 answer

copy package.json while building js library with parcel js

I am creating a typescript library, and when I am bundling it with parcel.js, the package.json file is not getting copied into the dist folder. Can any one let me know how can it be done?
0
votes
1 answer

visual studio code not recognized parcel

hey guys i new to parcel and i am trying to use parcel to build my website on it. i installed parcel using npm install --save-dev parcel but didnt work. then i ran parcel index.html and it returns parcel : The term 'parcel' is not recognized as the…
user17354812
0
votes
2 answers

Parcel - add svg sprite

Colleagues, I'm trying Parcel as an alternative to webpack project builder and I like it, but there are two BUTs that I still can't beat (here are links to starting builds - build on Parcel and build on webpack): 1) In the assembly under the…
0
votes
1 answer

Parcel typescript module augmentation

I'm trying to ship a lib that uses typescript module augmentation with Parceljs but it doesn't seem to bundle those module augmentations. I'm not able to use the properties in the project that import the lib generated with Parcel. { "name":…
AdMer
  • 500
  • 5
  • 17
0
votes
0 answers

Parcel.js - building the app takes too long and plenty of errors: EISDIR: illegal operation on a directory, read

I am building my app with parcel after I updated the dependecies: > parcel build index-prod.html --out-file index.html -d build --no-source-maps --no-cache / Building constant.js...EISDIR: illegal operation on a directory, read EISDIR: illegal…
Huqe Dato
  • 235
  • 1
  • 16
0
votes
0 answers

Css does not load in React widget built with parcel

I built a react widget with parcel bundler. The sites and it's JavaScript functionality works, but the CSS doesn't load with it, so it looks disfigured. I've tried several methods, but the CSS won't work. *Here is my package Json { "name":…
0
votes
1 answer

Parcel outputs "cannot resolve dependency" when building react widget

So I am trying to build a react widget. I have completed the app and it's works fine as a react app, but when I try to build it with parcel as a widget so I can be able to embed it in any website, this is what I get when I run the widget build…
0
votes
1 answer

HMR with Parcel.js within dynamic imports

I have a simple Parcel.js 2.0 set up with a main.js file as the starting point: import('./components/faqs/faqs.js').then(function(Faqs){ Faqs.init() }) When running parcel watch - I have found that changes to the main.js file HMR as expected,…
Michael Watson
  • 224
  • 3
  • 11