Comments (7)
@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.
@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.
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.
Looks like I'd move the identifiers
and literals
too.
from ember-cli-amd.
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.
Specifically I meant beat to the punch on the idea of moving things into a broccoli plugin.
from ember-cli-amd.
Closing
from ember-cli-amd.
Related Issues (20)
- Not working in Firefox HOT 2
- Decorators support HOT 4
- Failing to load require.js HOT 1
- Broken in ember 2.6.0 HOT 1
- The 'outputPath' key in example is incorrect and should be 'buildOuput' HOT 1
- Support package main shorthand in required module names
- Not playing nicely with Ember Inspector HOT 1
- Create a release for addon support HOT 1
- Does not work with ember-auto-import HOT 4
- 'require' and 'define' are being transformed in the public folder HOT 4
- Ember Server failing on test-support.js on v1.2.4 HOT 2
- after change to new version 2.0 generated index file contains no amd packages any more HOT 1
- Add option to have injected javascript non-inline HOT 2
- replace-require-and-define mangles MemberExpressions HOT 1
- amd-loading.js does not get a unique fingerprint HOT 2
- Project will not build when you change the default root HOT 1
- undefinedModule error from arcgis js library during tests HOT 3
- Fastboot support HOT 5
- Ember-try failing with Ember 3.27 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-amd.