Skip to content

Commit

Permalink
feat: Drop support for UMD, add module.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yomotsu committed Feb 14, 2024
1 parent 3a3ec87 commit 89cad76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"dev:rollup": "rollup --config --watch",
"dev:serve": "serve -S -p 3000 ./ && kill $!",
"dev:open": "open-cli http://localhost:3000/examples/",
"build": "rollup --config && terser dist/camera-controls.js -o dist/camera-controls.min.js --comments '/^!/' && downlevel-dts . .",
"build": "rollup --config && terser dist/camera-controls.module.js -o dist/camera-controls.module.min.js --comments '/^!/' && downlevel-dts . .",
"prepack": "npm run build",
"lint": "eslint src --ext ts",
"typedoc": "typedoc",
Expand Down
7 changes: 0 additions & 7 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ const license = `/*!
export default {
input: 'src/index.ts',
output: [
{
format: 'umd',
name: 'CameraControls',
file: pkg.main,
banner: license,
indent: '\t',
},
{
format: 'es',
file: pkg.module,
Expand Down

0 comments on commit 89cad76

Please sign in to comment.