Code Monkey home page Code Monkey logo

Comments (5)

kt3k avatar kt3k commented on May 17, 2024 4

Because this plugin exports only exports.default and doesn't export module.exports, maybe you need to put require("babel-plugin-transform-builtin-extend").default instead of require("babel-plugin-transform-builtin-extend").

I saw a similar error when I was creating this preset.
Babel's official transforms still export both module.exports and module.exports.default and that's why you don't need to put .default after require(...) when requiring them.

from babel-plugin-transform-builtin-extend.

loganfsmyth avatar loganfsmyth commented on May 17, 2024

Sorry, did you ever figure out the cause of this? As long as you are on a recent version of Babel, I wouldn't expect this behavior.

from babel-plugin-transform-builtin-extend.

zaggino avatar zaggino commented on May 17, 2024

That indeed worked: https://github.com/pureprofile-warp/babel-preset-pp-node4/commit/d6c0d193157d92a49a6296506aab05231cfbcb6b
Thanks @kt3k

from babel-plugin-transform-builtin-extend.

kt3k avatar kt3k commented on May 17, 2024

😄 👍

from babel-plugin-transform-builtin-extend.

yvele avatar yvele commented on May 17, 2024

@kt3k I ran in the same issue, thank you so much for the .defaultworkarround 👍

from babel-plugin-transform-builtin-extend.

Related Issues (13)

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.