Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f689ee

Browse files
fix: compatible with vue-loader experimentalInlineMatchResource (#829)
* fix: compatible with vue-loader experimentalInlineMatchResource* Update unplugin.tsCo-authored-by: neverland <jait.chen@foxmail.com>* Apply suggestions from code review* fix---------Co-authored-by: neverland <jait.chen@foxmail.com>
1 parentb5e2b76 commit2f689ee

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export default {
341341

342342
// `customLoaderMatcher` is depreacted, use `include` instead
343343
- customLoaderMatcher: id => id.endsWith('.md'),
344-
+ include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
344+
+ include: [/\.vue$/, /\.vue\?vue/, /\.vue\.[tj]sx?\?vue/, /\.md$/],
345345
}),
346346
],
347347
}
@@ -401,7 +401,7 @@ Components({
401401

402402
// Filters for transforming targets (components to insert the auto import)
403403
// Note these are NOT about including/excluding components registered - use `globs` or `excludeNames` for that
404-
include: [/\.vue$/,/\.vue\?vue/],
404+
include: [/\.vue$/,/\.vue\?vue/,/\.vue\.[tj]sx?\?vue/],
405405
exclude: [/[\\/]node_modules[\\/]/,/[\\/]\.git[\\/]/,/[\\/]\.nuxt[\\/]/],
406406

407407
// Filters for component names that will not be imported

‎src/core/unplugin.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ const PLUGIN_NAME = 'unplugin:webpack'
1313

1414
exportdefaultcreateUnplugin<Options>((options={})=>{
1515
constfilter=createFilter(
16-
options.include||[/\.vue$/,/\.vue\?vue/,/\.vue\?v=/],
16+
options.include||[
17+
/\.vue$/,
18+
/\.vue\?vue/,
19+
/\.vue\.[tj]sx?\?vue/,// for vue-loader with experimentalInlineMatchResource enabled
20+
/\.vue\?v=/,
21+
],
1722
options.exclude||[/[\\/]node_modules[\\/]/,/[\\/]\.git[\\/]/,/[\\/]\.nuxt[\\/]/],
1823
)
1924
constctx:Context=newContext(options)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp