Skip to content

Commit d771aef

Browse files
committed
feat: use the built-in this.getOptions as of Webpack 5
BREAKING CHANGE: Upgrade to Webpack 5, and drop support for Webpack 4 and below.
1 parent 152b5c0 commit d771aef

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const MarkdownIt = require('markdown-it');
22
const cheerio = require('cheerio');
3-
const loaderUtils = require('loader-utils');
43
const path = require('path');
54
const postcss = require('postcss');
65

@@ -70,7 +69,7 @@ function normalizeComponent(script, mixin) {
7069
}
7170

7271
module.exports = function markdownToVueLoader(source, map) {
73-
const options = { ...defaultOptions, ...loaderUtils.getOptions(this) };
72+
const options = { ...defaultOptions, ...this.getOptions() };
7473
const markdownItOptions = {
7574
...defaultOptions.markdownItOptions,
7675
...options.markdownItOptions,

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"homepage": "https://fengyuanchen.github.io/markdown-to-vue-loader",
4545
"dependencies": {
4646
"cheerio": "^1.0.0-rc.2",
47-
"loader-utils": "^1.2.3",
4847
"markdown-it": "^10.0.0",
4948
"postcss": "^7.0.18"
5049
},

0 commit comments

Comments
 (0)