Coder Social home page Coder Social logo

Comments (7)

ffaubry avatar ffaubry commented on August 30, 2024 1

@tomwayson I have re-structured the code into module following an idea from @ggayowsky.
It should help you reuse some parts.
Propose a PR if you need further modifications.

from ember-cli-amd.

ffaubry avatar ffaubry commented on August 30, 2024 1

@tomwayson
To beat someone to the punch you need to deliver before the others... This is delivering after ember-ci-amd has been out for 3 years and solved the issue correctly!
And yes, it's probably not covering all the issues.

I remind you, that ember-cli-amd supports engines and auto import.
We have reworked the code to make the main parts as module. Up to you to get this in ember-esri-loader...

With a little effort the ember-cli-amd could also lazy loads AMD modules. Just have to implement a smart service...

from ember-cli-amd.

ffaubry avatar ffaubry commented on August 30, 2024 1

That's what we do: https://github.com/Esri/ember-cli-amd/blob/master/lib/replace-require-and-define-filter.js
This is a plugin!
We could have released it as a plugin.
We are a subclass of const Filter = require('broccoli-filter');
broccoli-filter is a subclass of require('broccoli-plugin');

from ember-cli-amd.

tomwayson avatar tomwayson commented on August 30, 2024

Looks like I'd move the identifiers and literals too.

from ember-cli-amd.

tomwayson avatar tomwayson commented on August 30, 2024

Thanks @ffaubry!

Looks like somebody (Robert Jackson no less) has beaten us to the punch:

https://github.com/rwjblue/broccoli-derequire

Also, have you seen this:

https://github.com/richardaiko/ember-derequire

Sadly some of the open issues there make me suspect that those are not functionally on par w/ the level of replacement that is supported by this addon or even ember-esri-loader (which supports lazy engines).

One way or another I'd really like to centralize the find and replace logic and make it consistent.

from ember-cli-amd.

tomwayson avatar tomwayson commented on August 30, 2024

Specifically I meant beat to the punch on the idea of moving things into a broccoli plugin.

from ember-cli-amd.

ffaubry avatar ffaubry commented on August 30, 2024

Closing

from ember-cli-amd.

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.