Giter Site home page Giter Site logo

Broken links about website HOT 7 CLOSED

ipa1981 avatar ipa1981 commented on May 24, 2024
Broken links

from website.

Comments (7)

ipa1981 avatar ipa1981 commented on May 24, 2024 1

Thanks. Neither shorthands found in the project code as well. Hence it uses Laravel Mix and Webpack, with vast amount of under the hood internal Babel dependencies. We just removed all the babel from direct dependencies to test and it looks no build errors happens so far. Let's hope nothing gets broken :).

from website.

babel-bot avatar babel-bot commented on May 24, 2024

Hey @ipa1981! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community
that typically always has someone willing to help. You can sign-up here
for an invite.

from website.

JLHwung avatar JLHwung commented on May 24, 2024

Some of the helper functions we use in Babel's internal processes don't have documentation available. However, you can still check out the source code for @babel/helper-create-regexp-features-plugin here.

To provide some context, the helper serves as a plugin factory for all supported regular expression (regexp) features. If you enable multiple regexp plugins, it ensures that the actual regexp transform runs only once.

That said, docs PR on helpers is welcome.

from website.

ipa1981 avatar ipa1981 commented on May 24, 2024

@JLHwung thanks for a quick comment. In my case, I see this helper in package.json, but no imports in the project and thus I have no idea what it does and whether it should be there or it is safe to remove. Thus I was looking for docs to find a clue, what it solves for the user scope, but maybe you can comment?

  "dependencies": {
    "@babel/core": "^7.6.4",
    "@babel/helper-create-regexp-features-plugin": "^7.14.5",
    "@babel/plugin-syntax-dynamic-import": "7.x",
    "@babel/plugin-transform-runtime": "^7.14.3",
    "@babel/runtime": "^7.14.0",

from website.

JLHwung avatar JLHwung commented on May 24, 2024

@ipa1981 If you are not using this helper, you can safely remove that from your package.json. I guess it was installed so that the helper, as a transitive dependency of regexp plugins, can be upgraded.

from website.

ipa1981 avatar ipa1981 commented on May 24, 2024

Thank you. Will try to remove it and see if nothing is broken. It's hard to say if it's used or not. As neither plugin-syntax-dynamic-import and plugin-transform-runtime are imported in the code as well, so maybe it's safe. I'm closing this issue to keep the list clean

from website.

JLHwung avatar JLHwung commented on May 24, 2024

As neither plugin-syntax-dynamic-import and plugin-transform-runtime are imported in the code as well

Well they are different, Babel config supports shorthand plugin specifier so plugins: ["syntax-dynamic-import"] will also import the plugin. But that is not the case for @babel/helper-*.

As for plugin-syntax-dynamic-import, you can safely remove it if you upgrade @babel/core to 7.8.0 or above.

from website.

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.