mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Build: fix hot reload for charts (#9400)
* Fix hot reload for charts * Override tsc options for plugins Plugins will sometimes have their own `tsconfig.json`, which will interfere with the dev server config if configured inappropriately. This change makes sure `tsc` (and `ts-loader`) always compiles to `esnext` modules, so we don't get "Uncaught ReferenceError: exports is not defined" error.
This commit is contained in:
@@ -224,6 +224,15 @@ const config = {
|
||||
// type checking is done via fork-ts-checker-webpack-plugin
|
||||
happyPackMode: true,
|
||||
transpileOnly: true,
|
||||
// must override compiler options here, even though we have set
|
||||
// the same options in `tsconfig.json`, because they may still
|
||||
// be overriden by `tsconfig.json` in node_modules subdirectories.
|
||||
compilerOptions: {
|
||||
esModuleInterop: false,
|
||||
importHelpers: false,
|
||||
module: 'esnext',
|
||||
target: 'esnext',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user