@rsbuild/plugin-vue2 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -47,11 +47,11 @@ class VueLoader15PitchFixPlugin {
47
47
  const { NormalModule } = compiler.webpack;
48
48
  compiler.hooks.compilation.tap(this.name, (compilation)=>{
49
49
  var _compilation_compiler_options_experiments, _compilation_compiler_options;
50
- const isExpCssOn = null === (_compilation_compiler_options = compilation.compiler.options) || void 0 === _compilation_compiler_options ? void 0 : null === (_compilation_compiler_options_experiments = _compilation_compiler_options.experiments) || void 0 === _compilation_compiler_options_experiments ? void 0 : _compilation_compiler_options_experiments.css;
50
+ const isExpCssOn = null == (_compilation_compiler_options = compilation.compiler.options) ? void 0 : null == (_compilation_compiler_options_experiments = _compilation_compiler_options.experiments) ? void 0 : _compilation_compiler_options_experiments.css;
51
51
  if (!isExpCssOn) return;
52
52
  NormalModule.getCompilationHooks(compilation).loader.tap(this.name, (loaderContext)=>{
53
53
  var _loaderContext_loaders_, _loaderContext_loaders;
54
- if (/[?&]type=style/.test(loaderContext.resourceQuery) && /[\\/]vue-loader[\\/]lib[\\/]loaders[\\/]pitcher/.test((null === (_loaderContext_loaders = loaderContext.loaders) || void 0 === _loaderContext_loaders ? void 0 : null === (_loaderContext_loaders_ = _loaderContext_loaders[0]) || void 0 === _loaderContext_loaders_ ? void 0 : _loaderContext_loaders_.path) || '')) {
54
+ if (/[?&]type=style/.test(loaderContext.resourceQuery) && /[\\/]vue-loader[\\/]lib[\\/]loaders[\\/]pitcher/.test((null == (_loaderContext_loaders = loaderContext.loaders) ? void 0 : null == (_loaderContext_loaders_ = _loaderContext_loaders[0]) ? void 0 : _loaderContext_loaders_.path) || '')) {
55
55
  const seen = new Set();
56
56
  const loaders = [];
57
57
  for (const loader of loaderContext.loaders || []){
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__ from "node:module";
2
- import * as __WEBPACK_EXTERNAL_MODULE_vue_loader_a33e643c__ from "vue-loader";
1
+ import { createRequire } from "node:module";
2
+ import { VueLoaderPlugin } from "vue-loader";
3
3
  function _define_property(obj, key, value) {
4
4
  if (key in obj) Object.defineProperty(obj, key, {
5
5
  value: value,
@@ -15,11 +15,11 @@ class VueLoader15PitchFixPlugin {
15
15
  const { NormalModule } = compiler.webpack;
16
16
  compiler.hooks.compilation.tap(this.name, (compilation)=>{
17
17
  var _compilation_compiler_options_experiments, _compilation_compiler_options;
18
- const isExpCssOn = null === (_compilation_compiler_options = compilation.compiler.options) || void 0 === _compilation_compiler_options ? void 0 : null === (_compilation_compiler_options_experiments = _compilation_compiler_options.experiments) || void 0 === _compilation_compiler_options_experiments ? void 0 : _compilation_compiler_options_experiments.css;
18
+ const isExpCssOn = null == (_compilation_compiler_options = compilation.compiler.options) ? void 0 : null == (_compilation_compiler_options_experiments = _compilation_compiler_options.experiments) ? void 0 : _compilation_compiler_options_experiments.css;
19
19
  if (!isExpCssOn) return;
20
20
  NormalModule.getCompilationHooks(compilation).loader.tap(this.name, (loaderContext)=>{
21
21
  var _loaderContext_loaders_, _loaderContext_loaders;
22
- if (/[?&]type=style/.test(loaderContext.resourceQuery) && /[\\/]vue-loader[\\/]lib[\\/]loaders[\\/]pitcher/.test((null === (_loaderContext_loaders = loaderContext.loaders) || void 0 === _loaderContext_loaders ? void 0 : null === (_loaderContext_loaders_ = _loaderContext_loaders[0]) || void 0 === _loaderContext_loaders_ ? void 0 : _loaderContext_loaders_.path) || '')) {
22
+ if (/[?&]type=style/.test(loaderContext.resourceQuery) && /[\\/]vue-loader[\\/]lib[\\/]loaders[\\/]pitcher/.test((null == (_loaderContext_loaders = loaderContext.loaders) ? void 0 : null == (_loaderContext_loaders_ = _loaderContext_loaders[0]) ? void 0 : _loaderContext_loaders_.path) || '')) {
23
23
  const seen = new Set();
24
24
  const loaders = [];
25
25
  for (const loader of loaderContext.loaders || []){
@@ -69,7 +69,7 @@ const applySplitChunksRule = (api, options = {
69
69
  });
70
70
  });
71
71
  };
72
- const src_require = (0, __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__.createRequire)(import.meta.url);
72
+ const src_require = createRequire(import.meta.url);
73
73
  const PLUGIN_VUE2_NAME = 'rsbuild:vue2';
74
74
  function pluginVue2(options = {}) {
75
75
  return {
@@ -108,7 +108,7 @@ function pluginVue2(options = {}) {
108
108
  rule.test(VUE_REGEXP).use(CHAIN_ID.USE.VUE).loader(src_require.resolve('vue-loader')).options(vueLoaderOptions);
109
109
  if (chain.module.rules.has(CHAIN_ID.RULE.JS)) applyResolveConfig(rule, chain.module.rule(CHAIN_ID.RULE.JS));
110
110
  chain.module.rule(CHAIN_ID.RULE.CSS).test(/\.(?:css|postcss|pcss)$/);
111
- chain.plugin(CHAIN_ID.PLUGIN.VUE_LOADER_PLUGIN).use(__WEBPACK_EXTERNAL_MODULE_vue_loader_a33e643c__.VueLoaderPlugin);
111
+ chain.plugin(CHAIN_ID.PLUGIN.VUE_LOADER_PLUGIN).use(VueLoaderPlugin);
112
112
  chain.plugin('vue-loader-15-pitch-fix').use(VueLoader15PitchFixPlugin);
113
113
  });
114
114
  applySplitChunksRule(api, options.splitChunks);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-vue2",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "repository": "https://github.com/rspack-contrib/rsbuild-plugin-vue2",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,19 +36,19 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "vue-loader": "^15.11.1",
39
- "webpack": "^5.98.0"
39
+ "webpack": "^5.101.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@biomejs/biome": "^1.9.4",
43
- "@playwright/test": "^1.51.1",
44
- "@rsbuild/core": "^1.3.1",
45
- "@rsbuild/plugin-less": "1.2.1",
46
- "@rslib/core": "^0.6.1",
47
- "@types/node": "^22.13.14",
43
+ "@playwright/test": "^1.54.1",
44
+ "@rsbuild/core": "^1.4.12",
45
+ "@rsbuild/plugin-less": "1.3.1",
46
+ "@rslib/core": "^0.11.0",
47
+ "@types/node": "^22.17.0",
48
48
  "nano-staged": "^0.8.0",
49
- "playwright": "^1.51.1",
50
- "simple-git-hooks": "^2.12.1",
51
- "typescript": "^5.8.2",
49
+ "playwright": "^1.54.1",
50
+ "simple-git-hooks": "^2.13.1",
51
+ "typescript": "^5.9.2",
52
52
  "vue": "^2.7.16"
53
53
  },
54
54
  "peerDependencies": {
@@ -59,10 +59,9 @@
59
59
  "optional": true
60
60
  }
61
61
  },
62
- "packageManager": "pnpm@10.7.0",
62
+ "packageManager": "pnpm@10.14.0",
63
63
  "publishConfig": {
64
64
  "access": "public",
65
- "registry": "https://registry.npmjs.org/",
66
- "provenance": true
65
+ "registry": "https://registry.npmjs.org/"
67
66
  }
68
67
  }