Comments (6)
Thanks for the report. A fix for this is out with the latest preview (next
).
from piral.
I tested and it was fixed, thank you!
from piral.
We restart the process independent of what the bundler does. So in case of Webpack it might be sensitive to the package.json, however, this is nothing we control or will change.
If this edge case really impacts you (how?) then configure webpack to ignore the package.json. I think this is rather a cosmetic issue and for reliability it makes more sense that we restart the process than having just a single build here.
from piral.
Actually it is very reasonable. Thanks for spotting - with my answer I thought we already spot it and what you see is the triggering beforehand, but actually the bundler process keeps on running.
Perfect PR - wonderful!
from piral.
There are the same problem with using pilet debug
command in a monorepo. See the mwe
Environment Details and Version
[email protected]
Expected behavior
webpack always builds only once
Actual behavior
webpack performs multiple builds
yarn && yarn build && cd src/samples/sample-pilet && yarn start
- Press the command + s shortcut key to save the src/samples/sample-pilet/package.json file
- Press the
command + s
shortcut key to save thesrc/samples/sample-pilet/src/index.tsx
file
from piral.
We restart the process independent of what the bundler does. So in case of Webpack it might be sensitive to the package.json, however, this is nothing we control or will change.
If this edge case really impacts you (how?) then configure webpack to ignore the package.json. I think this is rather a cosmetic issue and for reliability it makes more sense that we restart the process than having just a single build here.
I completely agree with your idea, but the repeated build may be related to not restarting webpack when restarting the pilet process. After testing, pr fixed this problem. But since I don’t fully understand the logic of piral-cli
, I don’t know if pr is reasonable.
from piral.
Related Issues (20)
- On Invalid Config Pilet Publish Removes Source
- The index.d.ts of a Pilet Is Placed In dist
- Improve Toggle / Disable+Enable in Debug Tools
- Optional Shadow DOM Isolation HOT 1
- PiletApi's `once` throws when `this` context is `undefined` HOT 6
- This is Evil
- Piral with Rush HOT 16
- How do I configure this with Nuxt 3? Unable to setup HOT 4
- Remove Pilet-Only Settings When Debugging Piral Instance
- Navigation storm in angular pilets HOT 1
- Multiple Angular Extensions params HOT 4
- piral-ng: Cannot read properties of null (reading 'bindingStartIndex') HOT 3
- piral-breadcrumbs dependency on react-router v5 HOT 3
- Piral-Cli uses deprecated package HOT 2
- Repeat to connect to the server HOT 5
- Possibility to Define Vue 3 Plugins HOT 15
- Support Standalone Bootstrapping API in piral-ng HOT 1
- `.krasrc` resolution from `process.cwd()` folder HOT 5
- Install Event Listener Earlier
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from piral.