Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Bezkrovnyi committed Sep 11, 2021
1 parent 381d9f7 commit 45ca880
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions examples/node.js/build.cmd

This file was deleted.

2 changes: 1 addition & 1 deletion packages/image-q/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"default": "./dist/umd/image-q.js"
},
"scripts": {
"clean": "shx rm -rf ./node_modules",
"clean": "shx rm -rf ./node_modules/.cache",
"build": "tsc -p tsconfig.build-esm.json && webpack",
"test": "jest",
"gh-pages-DISABLED": "shx rm -rf ./docs && typedoc.cmd src && gh-pages -d docs",
Expand Down
3 changes: 3 additions & 0 deletions packages/image-q/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const baseConfig = {
output: {
path: path.resolve(__dirname, 'dist', 'umd'),
filename: '[name].js',
library: 'image-q',
libraryTarget: 'umd',
globalObject: `typeof globalThis !== 'undefined' ? globalThis : typeof this !== 'undefined' ? this : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : null`,
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx'],
Expand Down

0 comments on commit 45ca880

Please sign in to comment.