You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two places where the inclusion of incompatible JavaScript libraries could
384
384
occur:
385
385
386
-
1.`app.import` in the application's `ember-cli-build.js`
387
-
2.`app.import` in an addon's `included` hook
386
+
#### `app.import` in the application's `ember-cli-build.js`
387
+
388
+
If your Ember application is importing an incompatible Javascript library,you can use `app.import` with the `using` API.
389
+
390
+
```js
391
+
app.import('vendor/fastboot-incompatible.js', {
392
+
using: [
393
+
{
394
+
transformation:'fastbootShim'
395
+
}
396
+
]
397
+
});
398
+
```
399
+
#### `app.import` in an addon's `included` hook
388
400
389
401
You can include the incompatible Javascript libraries by wrapping them with a `FastBoot` variable check. In the browser, `FastBoot` global variable is not defined.
0 commit comments