Skip to content

Commit

Permalink
syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie1977 committed Oct 31, 2024
1 parent b06b8d5 commit a47dc3a
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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,
}
}
};

0 comments on commit a47dc3a

Please sign in to comment.