Update webpack.config.base.js

This commit is contained in:
Matthieu MOREL 2021-07-15 20:39:36 +02:00 committed by GitHub
parent 8b267ba947
commit 525e342f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -43,9 +43,11 @@ export const jsConfig = () => {
resolve: {
extensions: ['.wasm', '.mjs', '.js', '.json', '.jison']
},
node: {
fs: 'empty' // jison generated code requires 'fs'
},
resolve: {
fallback: {
fs: false // jison generated code requires 'fs'
}
},
output: {
path: path.join(__dirname, './dist/'),
filename: '[name].js',