diff --git a/.babelrc b/.babelrc index 79a873c..6a833bf 100644 --- a/.babelrc +++ b/.babelrc @@ -11,7 +11,7 @@ "@babel/preset-typescript" ], "plugins": [ - "@babel/plugin-proposal-class-properties", - "@babel/plugin-proposal-optional-chaining" + "@babel/plugin-transform-class-properties", + "@babel/plugin-transform-optional-chaining" ] } diff --git a/package.json b/package.json index 89de192..ba3d6d5 100755 --- a/package.json +++ b/package.json @@ -33,25 +33,25 @@ ], "dependencies": {}, "devDependencies": { - "@babel/cli": "^7.7.5", - "@babel/core": "^7.7.5", - "@babel/plugin-proposal-class-properties": "^7.7.4", - "@babel/plugin-proposal-optional-chaining": "^7.7.5", - "@babel/preset-env": "^7.7.5", + "@babel/cli": "^7.24.8", + "@babel/core": "^7.25.2", + "@babel/plugin-transform-class-properties": "^7.24.7", + "@babel/plugin-transform-optional-chaining": "^7.24.8", + "@babel/preset-env": "^7.24.8", "@babel/preset-typescript": "^7.7.4", "@babel/register": "^7.7.4", "@types/node": "^13.1.1", "@types/sdp-transform": "^2.4.9", "@typescript-eslint/eslint-plugin": "^2.12.0", "@typescript-eslint/parser": "^2.12.0", - "del-cli": "^1.1.0", - "eslint": "^6.7.2", - "rollup": "^1.27.13", - "rollup-plugin-babel": "^4.3.3", + "del-cli": "^5.1.0", + "eslint": "^9.9.0", + "rollup": "^2.78.0", + "@rollup/plugin-babel": "^6.0.4", "rollup-plugin-node-builtins": "^2.1.2", - "rollup-plugin-node-resolve": "^5.2.0", - "rollup-plugin-size-snapshot": "^0.10.0", - "rollup-plugin-terser": "^5.1.3", + "@rollup/plugin-node-resolve": "^15.2.0", + "rollup-plugin-size-snapshot": "^0.12.0", + "@rollup/plugin-terser": "^0.4.4", "sdp-transform": "^2.14.2", "typescript": "^4.7.4" } diff --git a/rollup.config.js b/rollup.config.js index 56d089e..4e556b5 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,9 +1,9 @@ import fs from 'fs'; import path from 'path'; -import babel from 'rollup-plugin-babel'; -import { terser } from 'rollup-plugin-terser'; -import resolve from 'rollup-plugin-node-resolve'; +import babel from '@rollup/plugin-babel'; +import terser from '@rollup/plugin-terser'; +import resolve from '@rollup/plugin-node-resolve'; import builtins from 'rollup-plugin-node-builtins'; import { sizeSnapshot } from 'rollup-plugin-size-snapshot'; @@ -20,7 +20,7 @@ const bannerPlugin = { */`, }; -const exportFormat = format => ({ +const exportFormat = (format) => ({ input: 'src/webrtc-wowza-player.ts', output: { name, @@ -45,7 +45,7 @@ const exportFormat = format => ({ output: { comments: /@license/ }, }), sizeSnapshot(), - ].filter(v => v), + ].filter((v) => v), }); export default ['umd', 'cjs', 'esm'].map(exportFormat);