mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-31 22:26:53 +02:00
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:
![49699333+dependabot[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
Matthieu Morel

parent
a990718b71
commit
5b1f574167
@@ -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',
|
||||
|
Reference in New Issue
Block a user