Bump webpack from 4.46.0 to 5.53.0

Bumps [webpack](https://github.com/webpack/webpack) from 4.46.0 to 5.53.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.46.0...v5.53.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot]
2021-09-21 07:37:11 +00:00
committed by Matthieu Morel
parent a990718b71
commit 5b1f574167
8 changed files with 337 additions and 1073 deletions

View File

@@ -18,11 +18,6 @@ const jisonRule = {
},
};
const amdRule = {
parser: {
amd: false, // https://github.com/lodash/lodash/issues/3052
},
};
const scssRule = {
// load scss to string
test: /\.scss$/,
@@ -30,6 +25,7 @@ const scssRule = {
};
module.exports = {
amd: false, // https://github.com/lodash/lodash/issues/3052
mode: 'development',
target: 'web',
entry: {
@@ -39,16 +35,19 @@ module.exports = {
},
resolve: {
extensions: ['.wasm', '.mjs', '.js', '.json', '.jison'],
},
node: {
fs: 'empty', // jison generated code requires 'fs'
fallback: {
fs: false, // jison generated code requires 'fs'
path: require.resolve('path-browserify'),
},
},
output: {
path: path.join(__dirname, './dist/'),
filename: '[name].js',
library: 'mermaid',
libraryTarget: 'umd',
libraryExport: 'default',
library: {
name: 'mermaid',
type: 'umd',
export: 'default',
},
},
devServer: {
compress: true,
@@ -59,7 +58,7 @@ module.exports = {
],
},
module: {
rules: [amdRule, jsRule, scssRule, jisonRule],
rules: [jsRule, scssRule, jisonRule],
},
externals: {
mermaid: 'mermaid',