diff --git a/packages/webpack/headless-webpack.config.js b/packages/webpack/headless-webpack.config.js index edba0dab3a..62a25d718d 100644 --- a/packages/webpack/headless-webpack.config.js +++ b/packages/webpack/headless-webpack.config.js @@ -199,7 +199,9 @@ const config = ( extensions: ['.tsx', '.ts', '.js'] }, experiments: { - topLevelAwait: true + topLevelAwait: true, + asyncWebAssembly: true, + syncWebAssembly: true }, watchOptions: { // here we ignore changes to any node_modules, except we want to @@ -212,12 +214,6 @@ const config = ( optimization, module: { rules: kuiPluginRules.concat([ - // handle WASM loading - { - test: /\.wasm$/, - type: 'asset/inline' - }, - { test: /\.node$/, loader: 'node-loader', diff --git a/packages/webpack/webpack.config.js b/packages/webpack/webpack.config.js index 6d09680b63..50c4637893 100644 --- a/packages/webpack/webpack.config.js +++ b/packages/webpack/webpack.config.js @@ -473,7 +473,9 @@ module.exports = { } }, */ experiments: { - topLevelAwait: true + topLevelAwait: true, + asyncWebAssembly: true, + syncWebAssembly: true }, watchOptions: { // here we ignore changes to any node_modules, except we want to @@ -506,12 +508,6 @@ module.exports = { optimization, module: { rules: kuiPluginRules.concat([ - // handle WASM loading - { - test: /\.wasm$/, - type: 'asset/inline' - }, - // patternfly has some huge image assets for demos; we can't use IgnorePlugin, because about-modal-box.css uses this demo image. sigh { test: new RegExp(