Skip to content

Commit

Permalink
Use AMD externs to keep compatibility with AMD
Browse files Browse the repository at this point in the history
  • Loading branch information
rochars committed Jan 5, 2020
1 parent 05e07d1 commit 9979c1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/wavefile.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions externs/amd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// To keep AMD compatibility
var amd = {};
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default [
compilation_level: 'ADVANCED',
warning_level: 'VERBOSE',
outputWrapper: polyfills + '%output%',
externs: ['externs/wavefile.js']
externs: ['externs/wavefile.js','externs/amd.js',]
}),
compiler({
language_in: 'ECMASCRIPT3',
Expand Down

0 comments on commit 9979c1c

Please sign in to comment.