diff --git a/webpack.config.js b/webpack.config.js index 9caa62ba6..fb785d791 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -157,13 +157,7 @@ module.exports = function (env){ 'three/examples/js/shaders/FocusShader': path.resolve(__dirname, 'node_modules/three/examples/jsm/shaders/FocusShader.js'), 'three/webgpu': path.resolve(__dirname, 'node_modules/three/examples/jsm/renderers/webgpu/WebGPURenderer.js') }, - extensions: ['*', '.js', '.json', '.ts', '.tsx', '.jsx'], - fallback: { - fs: 'empty', - child_process: 'empty', - module: 'empty', - 'three/webgpu': false - } + extensions: ['*', '.js', '.json', '.ts', '.tsx', '.jsx'] }, module: { @@ -217,9 +211,10 @@ module.exports = function (env){ ] }, node: { - fs: 'empty', - child_process: 'empty', - module: 'empty' + fs: false, + child_process: false, + module: false, + 'three/webgpu': false, } } };