Git Product home page Git Product logo

Comments (2)

manish-panwar avatar manish-panwar commented on July 18, 2024

Sorry, I didn't get

After further review, the issue should be addressed on the side of the module loader configuration (i.e. systemjs), so that the loader imports ES6 modules. This is required to obtain live-bindings necessary or d3.event to work.

I just started working on Angular.

from d3-ng2-service.

tomwanzek avatar tomwanzek commented on July 18, 2024

@manish-panwar My apologies for letting this issue slumber for longer than I should have. My initial response under #11 is still valid in principle. I.e. currently the published package support only imports based on ESM module format. When using a bundler, the bundler must be configured to support such imports. The module entry point is an ESM module compiled to ES5 target. The es2015 entry point is a ESM module compiled to ES2015 target.

As a matter of managing scope here, I cannot provide comprehensive support on bundler configuration, with the information above, it is best to use the bundler/third party plug-in documentation in combination with StackOverflow.

Currently, I am not providing a UMD module entry point which might have made your life easier with system.js. As I mentioned before, I encountered some issues when using Rollup to create the bundle which seem related to the way D3 itself is published (i.e. its approach to using the d3 global). I may re-consider this, as the guidelines for 3rd party Angular libraries and the related tooling are finally maturing. (I.e. see angular/angular#16486 and the starters in angular-quickstart-lib and generator-angular2-library).

I.e. conceivably, I may create a major release going forward which moves towards an Angular module rather than the bare bones service. I am closing this issue for now, however. Thanks for understanding.

from d3-ng2-service.

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.