Giter Site home page Giter Site logo

Comments (5)

rickiesmooth avatar rickiesmooth commented on May 24, 2024 1

thanks for your replies! Yes the .es6 file is getting generated, and while I was setting up my test case, I see that it does work as expected. For some reason in my project it isn't..I'll investigate some more.

from babel-esm-plugin.

ForsakenHarmony avatar ForsakenHarmony commented on May 24, 2024

That's weird, you do get an additional bundle as the output though?

from babel-esm-plugin.

prateekbh avatar prateekbh commented on May 24, 2024

Expected behavior is exactly what you’re looking for .
we can use some help for a repro of the bug

from babel-esm-plugin.

rickiesmooth avatar rickiesmooth commented on May 24, 2024

After some digging I found the issue in my implementation, in my case I had multiple babel-loaders rules: one that only included application code and excluded node_modules and one that only included node_modules - which caused this issue with the babel-esm-plugin.

My workaround was removing my node_modules rule and doing everything with one babel-loader rule (which eventually was better anyway) so I just wanted to let you know and see if this is a usecase you want to support?
I really enjoyed reading the blogpost about making this module and tried out some fixes, but I couldn't solve this issue myself. Maybe if you'd give me some pointers (and want to support this use case) I can make a PR.

Here's the test case I made to help clarify the issue:

from babel-esm-plugin.

rickiesmooth avatar rickiesmooth commented on May 24, 2024

@prateekbh please let me know if you need any more info

from babel-esm-plugin.

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.