Coder Social home page Coder Social logo

esbuild and Babel about reboost HOT 5 CLOSED

sarsamurmu avatar sarsamurmu commented on May 27, 2024
esbuild and Babel

from reboost.

Comments (5)

sarsamurmu avatar sarsamurmu commented on May 27, 2024 1

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.

sarsamurmu avatar sarsamurmu commented on May 27, 2024

Unfortunately, esbuild comes with Reboost, so it can't be uninstalled

from reboost.

GHNewbiee avatar GHNewbiee commented on May 27, 2024

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.

GHNewbiee avatar GHNewbiee commented on May 27, 2024

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.

sarsamurmu avatar sarsamurmu commented on May 27, 2024

You are correct and they have to apply the changes everytime reboost comes out.

from reboost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.