Skip to content

Commit 38ba876

Browse files
committed
feat: migrate from vue-loader to rspack-vue-loader
1 parent 72ed1cb commit 38ba876

File tree

13 files changed

+68
-66
lines changed

13 files changed

+68
-66
lines changed

.github/renovate.json5

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
},
4949
],
5050
ignoreDeps: [
51-
"vue",
52-
"vue-loader",
5351
"globby",
5452
"open",
5553
"strip-ansi",

pnpm-lock.yaml

Lines changed: 50 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rspack/common-libs/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Shared Library Package
2-
This is used to demonstrate monorepo usage
2+
3+
This is used to demonstrate monorepo usage.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
import { tab } from '@components/tab';
2+
23
console.log('button', tab);
4+
35
export * from '@components/tab';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
import { button } from '@components/button';
2+
23
console.log('button', button);
4+
35
export * from '@components/button';

rspack/unplugin-auto-import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"@rspack/core": "1.7.5",
1515
"html-webpack-plugin": "5.6.6",
1616
"unplugin-auto-import": "^21.0.0",
17-
"vue-loader": "^17.4.2"
17+
"rspack-vue-loader": "^17.5.0"
1818
}
1919
}

rspack/unplugin-auto-import/rspack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from '@rspack/cli';
22
import HtmlWebpackPlugin from 'html-webpack-plugin';
3+
import { VueLoaderPlugin } from 'rspack-vue-loader';
34
import AutoImport from 'unplugin-auto-import/rspack';
4-
import { VueLoaderPlugin } from 'vue-loader';
55

66
export default defineConfig({
77
plugins: [
@@ -22,7 +22,7 @@ export default defineConfig({
2222
rules: [
2323
{
2424
test: /\.vue$/,
25-
loader: 'vue-loader',
25+
loader: 'rspack-vue-loader',
2626
options: {
2727
experimentalInlineMatchResource: true,
2828
},

rspack/vue-tsx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"@vue/babel-plugin-jsx": "2.0.1",
1919
"babel-loader": "10.0.0",
2020
"typescript": "^5.9.3",
21-
"vue-loader": "^17.2.2"
21+
"rspack-vue-loader": "^17.5.0"
2222
}
2323
}

rspack/vue-tsx/rspack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { rspack } = require('@rspack/core');
2-
const { VueLoaderPlugin } = require('vue-loader');
2+
const { VueLoaderPlugin } = require('rspack-vue-loader');
33

44
/** @type {import('@rspack/cli').Configuration} */
55
const config = {
@@ -17,7 +17,7 @@ const config = {
1717
rules: [
1818
{
1919
test: /\.vue$/,
20-
loader: 'vue-loader',
20+
loader: 'rspack-vue-loader',
2121
options: {
2222
experimentalInlineMatchResource: true,
2323
},

rspack/vue-vanilla/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"less": "4.5.1",
1919
"less-loader": "^12.3.0",
2020
"style-loader": "^4.0.0",
21-
"vue-loader": "^17.2.2"
21+
"rspack-vue-loader": "^17.5.0"
2222
}
2323
}

0 commit comments

Comments
 (0)