Replace ts-loader with Babel (#21587)
* Applied prettier to relevant webpack configs * Replaced ng-annotate with babel-plugin-angularjs-annotate … and replaced ts-loader with @preset/typescript * Removed redundant import … that is problematic with Babel's module resolver * Updated lockfile * Traspile debug package to es5 for PhantomJS support * Update babel to latest version * Remove @babel/poolyfill and url search params polyfill * Add ts-loader to grafana-ui dependencies * Update prod webpack build to use cor-js 3 * Applied prettier to relevant webpack configs * Replaced ng-annotate with babel-plugin-angularjs-annotate … and replaced ts-loader with @preset/typescript * Updated lockfile Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Showing
... | ... | @@ -9,11 +9,13 @@ |
"url": "http://github.com/grafana/grafana.git" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.6.4", | ||
"@babel/plugin-syntax-dynamic-import": "7.2.0", | ||
"@babel/preset-env": "7.6.3", | ||
"@babel/preset-react": "7.6.3", | ||
"@babel/preset-typescript": "7.6.0", | ||
"@babel/core": "7.8.3", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "7.8.3", | ||
"@babel/plugin-proposal-optional-chaining": "7.8.3", | ||
"@babel/plugin-syntax-dynamic-import": "7.8.3", | ||
"@babel/preset-env": "7.8.3", | ||
"@babel/preset-react": "7.8.3", | ||
"@babel/preset-typescript": "7.8.3", | ||
"@emotion/core": "10.0.10", | ||
"@rtsao/plugin-proposal-class-properties": "7.0.1-patch.1", | ||
"@testing-library/react-hooks": "^3.2.1", | ||
... | ... | @@ -105,8 +107,6 @@ |
"mocha": "4.1.0", | ||
"module-alias": "2.2.0", | ||
"monaco-editor": "0.15.6", | ||
"ng-annotate-loader": "0.6.1", | ||
"ng-annotate-webpack-plugin": "0.3.0", | ||
"ngtemplate-loader": "2.0.1", | ||
"node-sass": "4.12.0", | ||
"npm": "6.13.4", | ||
... | ... | @@ -131,7 +131,6 @@ |
"style-loader": "0.23.1", | ||
"terser-webpack-plugin": "1.2.3", | ||
"ts-jest": "24.1.0", | ||
"ts-loader": "6.2.1", | ||
"ts-node": "8.5.0", | ||
"tslib": "1.10.0", | ||
"tslint": "5.20.1", | ||
... | ... | @@ -199,7 +198,6 @@ |
"printWidth": 120 | ||
}, | ||
"dependencies": { | ||
"@babel/polyfill": "7.6.0", | ||
"@braintree/sanitize-url": "4.0.0", | ||
"@grafana/slate-react": "0.22.9-grafana", | ||
"@reduxjs/toolkit": "1.2.1", | ||
... | ... | @@ -218,7 +216,7 @@ |
"calculate-size": "1.1.1", | ||
"classnames": "2.2.6", | ||
"clipboard": "2.0.4", | ||
"core-js": "2.6.9", | ||
"core-js": "3.6.4", | ||
"d3": "5.15.0", | ||
"d3-scale-chromatic": "1.5.0", | ||
"emotion": "10.0.27", | ||
... | ... | @@ -257,6 +255,7 @@ |
"redux": "4.0.4", | ||
"redux-logger": "3.0.6", | ||
"redux-thunk": "2.3.0", | ||
"regenerator-runtime": "0.13.3", | ||
"reselect": "4.0.0", | ||
"rst2html": "github:thoward/rst2html#990cb89", | ||
"rxjs": "6.5.4", | ||
... | ... | @@ -267,7 +266,6 @@ |
"tether-drop": "https://github.com/torkelo/drop/tarball/master", | ||
"tinycolor2": "1.4.1", | ||
"tti-polyfill": "0.2.2", | ||
"url-search-params-polyfill": "7.0.1", | ||
"whatwg-fetch": "3.0.0", | ||
"xss": "1.0.3" | ||
}, | ||
... | ... |
... | ... | @@ -26,8 +26,8 @@ |
}, | ||
"main": "src/index.ts", | ||
"dependencies": { | ||
"@babel/core": "7.6.4", | ||
"@babel/preset-env": "7.6.3", | ||
"@babel/core": "7.8.3", | ||
"@babel/preset-env": "7.8.3", | ||
"@grafana/data": "6.7.0-pre", | ||
"@grafana/ui": "6.7.0-pre", | ||
"@types/command-exists": "^1.2.0", | ||
... | ... |
... | ... | @@ -91,6 +91,7 @@ |
"rollup-plugin-terser": "4.0.4", | ||
"rollup-plugin-typescript2": "0.19.3", | ||
"rollup-plugin-visualizer": "0.9.2", | ||
"ts-loader": "6.2.1", | ||
"typescript": "3.7.2" | ||
}, | ||
"types": "src/index.ts" | ||
... | ... |
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment