Comments (5)
Yes they can uninstall it, but they have to add this object to their plugins array
const { start, builtInPlugins: { esbuildPlugin } } = require('reboost');
start({
plugins: [
{ name: esbuildPlugin().name }
// Other plugins
]
})
This is necessary because Reboost adds esbuildPlugin
if it's not included by the user, by adding that object you tell Reboost that you have added esbuildPlugin
, but you are not actually adding any plugin functionality.
from reboost.
Unfortunately, esbuild comes with Reboost, so it can't be uninstalled
from reboost.
At first sight (quick search), I found that esbuild
is mentioned only in the following files:
- .../node_modules/reboost/dist/node/plugins/index.js
- .../node_modules/reboost/dist/node/plugins/removed.js
- .../node_modules/reboost/dist/node/index.js
It also seems that its isolation is quite easy. So, if someone decides to use other transformation tool, then (s)he can easily "remove" the references and uninstall it. Am I correct or missing something?
from reboost.
That's perfect! Or they can make the following changes: (I have the sense that I miss something...)
- .../node_modules/reboost/dist/node/index.js
...
- const esbuild_1 = require("./plugins/esbuild");
...
- if (!pluginNames.includes(esbuild_1.PluginName)) {
- plugins.push(esbuild_1.esbuildPlugin());
- }
- .../node_modules/reboost/dist/node/plugins/removed.js
...
- exports.esbuildPlugin = () => movedToBuiltIn('esbuildPlugin');
+ exports.esbuildPlugin = () => movedToDifferentPackage('esbuildPlugin', 'esbuild');
...
and
- .../node_modules/reboost/dist/node/plugins/index.js
...
- var esbuild_1 = require("./esbuild");
- Object.defineProperty(exports, "esbuildPlugin", { enumerable: true, get: function () { return esbuild_1.esbuildPlugin; } });
...
But, they have to apply the changes each time a new version of Reboost
comes out, haven't they?
from reboost.
You are correct and they have to apply the changes everytime reboost comes out.
from reboost.
Related Issues (20)
- PostCSSPlugin - How to pass the "path" of PostCSS Config Directory HOT 4
- Moving "jsconfig.json" from project root in "Lit-Element" template HOT 1
- "lit-element" stopped getting rendered HOT 6
- "plugin-babel - transformContent" mismatch type declaration HOT 2
- How to pass a plugin config object to the plugin itself during bootstrap HOT 2
- PostCSSPlugin - error not caught HOT 10
- Contradiction and confusion HOT 1
- Unable to resolve path aliases HOT 2
- Unable to import css files HOT 12
- Page not reloaded when css file changes HOT 2
- "includeDefaultPlugins" config option HOT 1
- Does it support route? HOT 10
- I feel that reboost should be a robust HMR server. HOT 1
- tailwindcss not work HOT 11
- Identifier '__Runtime' has already been declared. (ReactRefreshPlugin) HOT 9
- Unable to resolve import "prop-types" (reboost) HOT 14
- Serving/opening more than one html files at the same time HOT 1
- plugin-litcss upgrade HOT 2
- Error while importing awaitable-timers HOT 5
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 reboost.