Git Product home page Git Product logo

Comments (5)

lauripiispanen avatar lauripiispanen commented on August 15, 2024

Published. UMD wrapper is a bit problematic though - even though Angular team started to publish their releases to npm, they don't export Angular as a CommonJS module yet. Angular will therefore always require some amount of shimming depending on which bundler you're using.

If you have a straightforward solution to this, I'd love to see it! Otherwise I'm going to close this issue for now, and revisit it once Angular supports CommonJS better.

from angular-bacon.

mr-mig avatar mr-mig commented on August 15, 2024

Angular will therefore always require some amount of shimming depending on which bundler you're using.

Yes, that's a common problem. There is angular-cjs shim for cjs modules, and shimming is pretty straightforward with AMD.

Otherwise I'm going to close this issue for now, and revisit it once Angular supports CommonJS better.

I am skeptical about this, as they have some issues with merging AMD-related pull requests for a long time.

Anyway, I am using both CJS/AMD modules and UMD will be much helpful.

from angular-bacon.

mr-mig avatar mr-mig commented on August 15, 2024

I need this thing as I am planning to use angular-bacon with my "framework" based on angular (from now on).
I will either use requirejs or webpack (which supports AMD/cjs/es6 modules) as a opinionated module loader for those stuff.

from angular-bacon.

lauripiispanen avatar lauripiispanen commented on August 15, 2024

Sure, I think I'm going to do a proof of concept sometime next week to explore some options on how that might work with Browserify, RequireJS and Webpack.

from angular-bacon.

mr-mig avatar mr-mig commented on August 15, 2024

If you need the setup for angular, you can see it here:

  1. w webpack: https://github.com/packetloop/angular-webpack
  2. w requirejs: https://github.com/tnajdek/angular-requirejs-seed/blob/master/app/js/main.js

from angular-bacon.

Related Issues (10)

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.