mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Storybook: Use new JSX runtime (#89768)
use new jsx runtime in storybook
This commit is contained in:
parent
95a8fc1dd7
commit
d3dda4ca89
@ -96,10 +96,19 @@ const mainConfig: StorybookConfig = {
|
|||||||
tsconfigPath: path.resolve(__dirname, 'tsconfig.json'),
|
tsconfigPath: path.resolve(__dirname, 'tsconfig.json'),
|
||||||
shouldExtractLiteralValuesFromEnum: true,
|
shouldExtractLiteralValuesFromEnum: true,
|
||||||
shouldRemoveUndefinedFromOptional: true,
|
shouldRemoveUndefinedFromOptional: true,
|
||||||
propFilter: (prop: any) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
|
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
|
||||||
savePropValueAsString: true,
|
savePropValueAsString: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
swc: () => ({
|
||||||
|
jsc: {
|
||||||
|
transform: {
|
||||||
|
react: {
|
||||||
|
runtime: 'automatic',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
webpackFinal: async (config) => {
|
webpackFinal: async (config) => {
|
||||||
// expose jquery as a global so jquery plugins don't break at runtime.
|
// expose jquery as a global so jquery plugins don't break at runtime.
|
||||||
config.module?.rules?.push({
|
config.module?.rules?.push({
|
||||||
|
Loading…
Reference in New Issue
Block a user