diff --git a/plugins/woocommerce-blocks/storybook/webpack.config.js b/plugins/woocommerce-blocks/storybook/webpack.config.js index 52f4cc26af7..38860e98cdc 100644 --- a/plugins/woocommerce-blocks/storybook/webpack.config.js +++ b/plugins/woocommerce-blocks/storybook/webpack.config.js @@ -12,7 +12,7 @@ const { getMainConfig, getStylingConfig, } = require( '../bin/webpack-configs.js' ); -const tsConfig = require( '../tsconfig.json' ); +const tsConfig = require( '../tsconfig.base.json' ); const aliases = Object.keys( tsConfig.compilerOptions.paths ).reduce( ( acc, key ) => { diff --git a/plugins/woocommerce-blocks/tsconfig.base.json b/plugins/woocommerce-blocks/tsconfig.base.json index 525720d9f1c..91d8c218a22 100644 --- a/plugins/woocommerce-blocks/tsconfig.base.json +++ b/plugins/woocommerce-blocks/tsconfig.base.json @@ -6,10 +6,8 @@ "baseUrl": ".", "module": "esnext", "emitDeclarationOnly": true, - // Import non-ES modules as default imports. "esModuleInterop": true, "resolveJsonModule": true, - // Preserve JSX, allows compatibility with wp-element jsx babel transforms "jsx": "preserve", "target": "esnext", "allowJs": true, @@ -41,6 +39,7 @@ "@woocommerce/block-hocs": [ "assets/js/hocs" ], "@woocommerce/blocks-registry": [ "assets/js/blocks-registry" ], "@woocommerce/blocks-checkout": [ "packages/checkout" ], + "@woocommerce/price-format": [ "packages/prices" ], "@woocommerce/block-settings": [ "assets/js/settings/blocks" ], "@woocommerce/e2e-tests": [ "node_modules/woocommerce/tests/e2e" ], "@woocommerce/icons": [ "assets/js/icons" ],