mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 00:07:08 +00:00
adding globalObject
so it can be used within Node.js (though it doesn't do anything)
This commit is contained in:
parent
a08ee7e4d7
commit
076bec5dab
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const path = require("path");
|
||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
|
||||
|
@ -15,7 +16,8 @@ const defaults = {
|
|||
path: path.resolve(__dirname, "build"),
|
||||
filename: "[name].js",
|
||||
library: "Tone",
|
||||
libraryTarget: "umd"
|
||||
libraryTarget: "umd",
|
||||
globalObject: "typeof self !== 'undefined' ? self : this",
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".js"]
|
||||
|
|
Loading…
Reference in a new issue