Skip to content

Commit 229052c

Browse files
committed
Merge branch 'vuejs:master' into fix/css-loader-compat
2 parents 8b5f82a + b179fb9 commit 229052c

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

Diff for: CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
<a name="15.9.7"></a>
2+
## [15.9.7](https://github.com/vuejs/vue-loader/compare/v15.9.6...v15.9.7) (2021-05-11)
3+
4+
5+
### Bug Fixes
6+
7+
* [plugin] Use compiler.webpack when possible ([#1822](https://github.com/vuejs/vue-loader/issues/1822)) ([f7ee30b](https://github.com/vuejs/vue-loader/commit/f7ee30b)), closes [#1781](https://github.com/vuejs/vue-loader/issues/1781)
8+
* check for compiler.webpack existence ([2472b2f](https://github.com/vuejs/vue-loader/commit/2472b2f))
9+
10+
11+
112
<a name="15.9.6"></a>
213
## [15.9.6](https://github.com/vuejs/vue-loader/compare/v15.9.5...v15.9.6) (2020-12-17)
314

Diff for: lib/plugin-webpack5.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ const ruleSetCompiler = new RuleSetCompiler([
3131

3232
class VueLoaderPlugin {
3333
apply (compiler) {
34+
const normalModule = compiler.webpack
35+
? compiler.webpack.NormalModule
36+
: require('webpack/lib/NormalModule')
3437
// add NS marker so that the loader can detect and report missing plugin
3538
compiler.hooks.compilation.tap(id, compilation => {
36-
const normalModuleLoader = require('webpack/lib/NormalModule').getCompilationHooks(compilation).loader
39+
const normalModuleLoader = normalModule.getCompilationHooks(compilation).loader
3740
normalModuleLoader.tap(id, loaderContext => {
3841
loaderContext[NS] = true
3942
})

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-loader",
3-
"version": "15.9.6",
3+
"version": "15.9.7",
44
"description": "Vue single-file component loader for Webpack",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",

0 commit comments

Comments
 (0)