-
-
Notifications
You must be signed in to change notification settings - Fork 379
Open
Description
Describe the bug
const ComponentsPlugin = require('unplugin-vue-components/rspack');
/**
@type {import('@rspack/cli').Configuration}
*/
module.exports = {
context: __dirname,
entry: {
main: './src/main.tsx',
},
builtins: {
html: [
{
template: './index.html',
},
],
},
module: {
rules: [
{
test: /.svg$/,
type: 'asset',
},
{
test: /.jpg$/,
type: 'asset',
},
],
},
// 已经是最小案例了,用了ComponentsPlugin后,import aaaJpg from './aaa.jpg' 就不生效
// 注释ComponentsPlugin之后,就正常了
plugins: [ComponentsPlugin({})],
};
Reproduction
https://github.com/galaxy-s10/issue-demo/tree/master/demo3
System Info
const ComponentsPlugin = require('unplugin-vue-components/rspack');
/**
@type {import('@rspack/cli').Configuration}
*/
module.exports = {
context: __dirname,
entry: {
main: './src/main.tsx',
},
builtins: {
html: [
{
template: './index.html',
},
],
},
module: {
rules: [
{
test: /.svg$/,
type: 'asset',
},
{
test: /.jpg$/,
type: 'asset',
},
],
},
// 已经是最小案例了,用了ComponentsPlugin后,import aaaJpg from './aaa.jpg' 就不生效
// 注释ComponentsPlugin之后,就正常了
plugins: [ComponentsPlugin({})],
};Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Metadata
Metadata
Assignees
Labels
No labels