question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

generate bundle with a different targets

See original GitHub issue

In my babel config I configured my preset-env to target IE11 and higher, and when I added the babel-esm-plugin I thought it would create another bundle which targets esmodules regardless of the targets that are defined in the babel config (in my case IE11).

When I do a standalone build that targets esmodules the filesize is considerably smaller and preserves ES6 features like classes etc, but when I use the plugin with my babel config and inspect the ES6 bundle geneerated by this plugin it doesn’t preserve ES6 features.

Is this expected behavior or am I doing something wrong? If it’s unclear I could setup a test case to provide more information.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rickiesmoothcommented, Apr 6, 2020

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.

0reactions
rickiesmoothcommented, May 4, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can an Xcode project with multiple targets have different ...
Now create a group in Xcode for every of those folders and drag each of the new Settings.bundle directories to the corresponding group....
Read more >
Xcode multiple targets vs separate… | Apple Developer Forums
I want to create multiple projects but all of them share the common code base. The only difference is name, bundle id, info....
Read more >
one bundle target for multiple targets - Code - CMake Discourse
Hi, I have a project that produces 8 executable binaries, each as it's own target. Is it possible to have a “bundle-like” pseudo...
Read more >
Manage Multiple Target Variant With React Native Apps
To be able to run multiple configurations simultaneously, we will need to set up a unique bundle ID for each of them. Select...
Read more >
[feature requests] Multiple bundles/targets & platforms #724
add property "buildTarget" to bundle object that works like dependencies[x].env property (can specify multiple target concatenated with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found