diff --git a/scripts/babel/proptypes-from-ts-props/index.test.ts b/scripts/babel/proptypes-from-ts-props/index.test.ts index 3574a12b18..c786185d8f 100644 --- a/scripts/babel/proptypes-from-ts-props/index.test.ts +++ b/scripts/babel/proptypes-from-ts-props/index.test.ts @@ -2556,7 +2556,7 @@ export { Foo }; babelOptions ); - expect(result.code).toBe(''); + expect(result.code).toBe('export {};'); }); it('removes multiple type export from ExportNamedDeclaration', () => { @@ -2569,7 +2569,7 @@ export { Foo, Bar }; babelOptions ); - expect(result.code).toBe(''); + expect(result.code).toBe('export {};'); }); it('removes type exports from ExportNamedDeclaration, leaving legitimate exports', () => { @@ -2666,7 +2666,7 @@ export type Foo = string; babelOptions ); - expect(result.code).toBe(''); + expect(result.code).toBe('export {};'); }); it('removes 3rd-party type exports', () => { diff --git a/src-docs/webpack.config.js b/src-docs/webpack.config.js index b9714dea56..1eeb119ed0 100644 --- a/src-docs/webpack.config.js +++ b/src-docs/webpack.config.js @@ -106,14 +106,21 @@ const webpackConfig = { }, { test: /\.(woff|woff2|ttf|eot|ico)(\?|$)/, - loader: 'file-loader', + type: 'asset/resource', + generator: { + filename: 'fonts/[name][ext]', + }, }, { test: /\.(png|jp(e*)g|svg|gif)$/, - loader: 'url-loader', - options: { - limit: 8000, // Convert images < 8kb to base64 strings - name: 'images/[hash]-[name].[ext]', + type: 'asset', + generator: { + filename: 'images/[contenthash]-[name][ext]', + }, + parser: { + dataUrlCondition: { + maxSize: 8 * 1024, + }, }, }, ], diff --git a/src/webpack.config.js b/src/webpack.config.js index 71078c1a5f..7311a8f99d 100644 --- a/src/webpack.config.js +++ b/src/webpack.config.js @@ -118,6 +118,6 @@ module.exports = { optimization: { minimize: isProduction, minimizer: [terserPlugin], - noEmitOnErrors: true, + emitOnErrors: false, }, };