Skip to content

Commit

Permalink
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,13 @@ module.exports = {

let versionTree = writeFile(
'ember-paper/register-version.js',
`Ember.libraries.register('Ember Paper', '${version}');`
`let emberLibraries;
try {
emberLibraries = requireModule('ember')['default'].libraries;
} catch {
emberLibraries = window.Ember.libraries;
}
emberLibraries?.register('Ember Paper', '${version}');`
);

let hammerJs = fastbootTransform(new Funnel(this.pathBase('hammerjs'), {
Expand Down

0 comments on commit 9b80fcd

Please sign in to comment.