Comments (7)
A cheesy fix for this could be just to do: customElements.efineday = customElements.define
before vendor.js is loaded.
from ember-esri-loader.
Or maybe specifying some uglify options to preserve customElements
in the output.
from ember-esri-loader.
Dumb question: what does efineday
do?
from ember-esri-loader.
https://github.com/Esri/ember-esri-loader/#how-it-works
from ember-esri-loader.
I tried disabling ember-cli-uglify but customElements
was still getting mangled. I then remembered that ember-auto-import applies babel transforms, so I tried:
skipBabel: [{
// needed for ember-esri-loader
package: '@esri/calcite-components',
semverRange: '*'
}],
But that had no effect either.
Then I thought, "oh, it's skipping babel but then getting uglified." So I tried both together. No dice.
At this point I'm not sure what's transforming that file (for reference, this is the file in question, line 2070). It feels like skipBabel
didn't get applied.
from ember-esri-loader.
FWIW - adding the following to the index.html files (app and test) before the vendor.js script tag seems to work.
<script>
// see: https://github.com/Esri/ember-esri-loader/issues/95#issuecomment-634392591
customElements.efineday = customElements.define;
</script>
😞
from ember-esri-loader.
FYI - that does not work in IE, we get a 'customElements' is undefined
error:
I could check for customElements
before executing that line, but I think we'll end up running into the original error later when the someone uses a stencil component.
I think that would need to run after the custom elements polyfill is added.
from ember-esri-loader.
Related Issues (20)
- Breaks in Ember 3.25 (and perhaps earlier) apps
- Incompatible with ember-auto-import 2.x HOT 1
- use headless chrome instead of FF in CI HOT 1
- production builds of 2.14.2 apps do not work at all HOT 1
- Write node tests for index.js HOT 1
- Changing require to pig latin breaking tests HOT 4
- An app's production build breaks if source maps are enabled. HOT 5
- Production builds of apps that use this addon fail due to integrity check errors HOT 1
- Add examples section to README
- Should probably understand what's been going on over at ember-cli-amd and see if it applies here? HOT 2
- Error when using this with ember-bootstrap
- Don't equireray nls files
- Old Ember and Esri-loader versions HOT 7
- Ember-cli 3.5 breaks this addon HOT 9
- Update esri-loader dependency version notation HOT 6
- Use dependabot to keep esri-loader version in sync HOT 4
- get ember-try working again
- Unknown issue following 3.0.0 update HOT 2
- add automated tests for regex
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-esri-loader.