Skip to content

Commit

Permalink
Clarify Fengari work-around in webpack.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
timkurvers committed Mar 20, 2019
1 parent cd48c6e commit 8c61884
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ module.exports = {
extensions: ['.js', '.mjs'],
},
devtool: 'source-map',
node: {
fs: 'empty',
},
plugins: [
new HtmlWebpackPlugin({
hash: true,
inject: true,
template: './src/index.html',
}),
new webpack.DefinePlugin({
// Prevent Fengari from loading Node-only libraries
// See: https://github.com/fengari-lua/fengari/blob/master/src/loslib.js#L480-L489
'typeof process': JSON.stringify('undefined'),
}),
],
Expand Down

0 comments on commit 8c61884

Please sign in to comment.