diff --git a/CHANGELOG.md b/CHANGELOG.md index 27a9db780..4b1b4d60d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ + +# [15.11.1](https://github.com/vuejs/vue-loader/compare/v15.11.0...v15.11.1) (2023-10-18) + +### Bug Fixes + +* fix: fix read property error for accessing lang of script ([#2060](https://github.com/vuejs/vue-loader/pull/2060)) + + + +# [15.11.0](https://github.com/vuejs/vue-loader/compare/v15.10.2...v15.11.0) (2023-10-18) + +### Features + +* A new `experimentalInlineMatchResource` option (webpack 5 only), which leverages webpack 5's [inline matchResource](https://webpack.js.org/api/loaders/#inline-matchresource) feature in the underlying implementation, and works well with the [`experiments.css`](https://webpack.js.org/configuration/experiments/#experimentscss) feature. This also makes `vue-loader` compatible with [Rspack](https://www.rspack.dev/guide/vue). ([#2058](https://github.com/vuejs/vue-loader/pull/2058)) + + # [15.10.2](https://github.com/vuejs/vue-loader/compare/v15.10.1...v15.10.2) (2023-08-23) diff --git a/lib/index.js b/lib/index.js index ea1f0177f..a65a73abf 100644 --- a/lib/index.js +++ b/lib/index.js @@ -117,7 +117,7 @@ module.exports = function (source) { // let isTS = false const { script, scriptSetup } = descriptor if (script || scriptSetup) { - const lang = script.lang || (scriptSetup && scriptSetup.lang) + const lang = (script && script.lang) || (scriptSetup && scriptSetup.lang) // isTS = !!(lang && /tsx?/.test(lang)) const externalQuery = script && !scriptSetup && script.src ? `&external` : `` diff --git a/package.json b/package.json index a11151eb9..aa8d57558 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-loader", - "version": "15.11.0", + "version": "15.11.1", "description": "Vue single-file component loader for Webpack", "main": "lib/index.js", "typings": "lib/index.d.ts",
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: