mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add tslib to TS compiler
- using tslib reduces bundle sizes - add compiler option for easier default imports of CJS modules - remove double entry of fork-ts-checker-plugin - speed up hot reload by using exprimental ts-loader API
This commit is contained in:
@@ -20,6 +20,7 @@ module.exports = merge(common, {
|
||||
path: path.resolve(__dirname, '../../public/build'),
|
||||
filename: '[name].[hash].js',
|
||||
publicPath: "/public/build/",
|
||||
pathinfo: false,
|
||||
},
|
||||
|
||||
resolve: {
|
||||
@@ -37,6 +38,12 @@ module.exports = merge(common, {
|
||||
}
|
||||
},
|
||||
|
||||
optimization: {
|
||||
removeAvailableModules: false,
|
||||
removeEmptyChunks: false,
|
||||
splitChunks: false,
|
||||
},
|
||||
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
@@ -56,7 +63,8 @@ module.exports = merge(common, {
|
||||
{
|
||||
loader: 'ts-loader',
|
||||
options: {
|
||||
transpileOnly: true
|
||||
transpileOnly: true,
|
||||
experimentalWatchApi: true
|
||||
},
|
||||
}],
|
||||
},
|
||||
|
Reference in New Issue
Block a user