Giter Club home page Giter Club logo

Comments (14)

hzoo avatar hzoo commented on May 15, 2024

Sorry, looking into it. It seems like we missed a step when moving babylon out of the main repo. (This was the first release out of it)

from babylon.

sebmck avatar sebmck commented on May 15, 2024

Seems to be resolved?

from babylon.

EvHaus avatar EvHaus commented on May 15, 2024

@kittens This is still an issue for me in babylon@latest (6.8.1).

from babylon.

hzoo avatar hzoo commented on May 15, 2024

Oh is this just because of default exports? We just need to add the add-module-exports plugin like I did in babel

Made #52

from babylon.

brzpegasus avatar brzpegasus commented on May 15, 2024

Does this have to do with the fact that the minor version bump from [email protected] to [email protected] is accompanied by a major version bump of babel-runtime from 5.0.0 to 6.0.0? We are seeing errors in ember-suave as well as a result of upgrading babylon.

from babylon.

loganfsmyth avatar loganfsmyth commented on May 15, 2024

Sorry, I raised this on our internal chat when you originally filed this, but it appears I forgot to comment here, woops!

This is because we accidentally didn't transition over our scripts to bundle Babylon together into a single file. Pre-6.8.x, Babylon was processed with browserify before being published, which meant that it didn't actually have any require calls in it, but also meant that Webpack complains when trying to package it.

You likely have noParse: /babylon/ in your webpack config to tell webpack to not complain, but that also means that webpack will not walk through the file looking for require calls. Then we released 6.8 without the browserify bundling, which means we started having require calls again.

We either need to add the browserify bundling back in, or if we decide we don't want that, you should remove noParse from your config. I wouldn't recommend doing that until we make a call on whether to add Browserify again on our end though.

from babylon.

sebmck avatar sebmck commented on May 15, 2024

We shouldn't add back browserify since there's no module deduping so there's always an extra version of core-js.

from babylon.

loganfsmyth avatar loganfsmyth commented on May 15, 2024

Maybe @jmm can chime in, I was under the impression there was a way to bundle your local files without bundling node_modules, but I may be wrong.

from babylon.

EvHaus avatar EvHaus commented on May 15, 2024

@loganfsmyth Just wanted to confirm that I do indeed have this in my webpack :)

// Hides some "This seems to be a pre-built javascript file." warnings
// caused as a result of importing the Babel polyfills for the
// live code editing feature
noParse: /node_modules[\/\\]babylon/

from babylon.

jmm avatar jmm commented on May 15, 2024

@loganfsmyth @kittens I can check this out to see what we can do with Browserify to avoid bundling duplicate modules (there are ways of excluding certain modules). But the original reason for Browserifying was to prevent people from requiring "internal" modules, right? Do people still care about that?

from babylon.

danez avatar danez commented on May 15, 2024

We have the latest babylon running in browser bundled with webpack at my company, and don't have a problem. Though we don't have babylon flagged as noParse.

What was the initial reason to bundle babylon with browserify?

from babylon.

hzoo avatar hzoo commented on May 15, 2024

I removed babel-runtime so there's no dependencies now and we can run browserify/webpack/rollup if we wanted to

from babylon.

hzoo avatar hzoo commented on May 15, 2024

Shouldn't be an issue after #190 / https://github.com/babel/babylon/releases/tag/v6.13.1 since we remove requires and use rollup?

from babylon.

EvHaus avatar EvHaus commented on May 15, 2024

I've moved over to using babel-standalone for my needs here and that has resolved the issue. Closing.

from babylon.

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.