mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 22:40:13 +01:00
Fix new violations from eslint-plugin-unicorn update.
This commit is contained in:
parent
c6d0ce5596
commit
4c00ffa2f0
14 changed files with 64 additions and 56 deletions
|
|
@ -3,6 +3,7 @@
|
|||
"use strict";
|
||||
|
||||
const webpack = require("webpack");
|
||||
const nodeModulePrefixRe = /^node:/u;
|
||||
|
||||
function config(options) {
|
||||
const { entry, filename, mode, packageJson } = options;
|
||||
|
|
@ -37,6 +38,13 @@ function config(options) {
|
|||
"path": __dirname
|
||||
},
|
||||
"plugins": [
|
||||
new webpack.NormalModuleReplacementPlugin(
|
||||
nodeModulePrefixRe,
|
||||
(resource) => {
|
||||
const module = resource.request.replace(nodeModulePrefixRe, "");
|
||||
resource.request = module;
|
||||
}
|
||||
),
|
||||
new webpack.BannerPlugin({
|
||||
"banner": `${name} ${version} ${homepage} @license ${license}`
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue