File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ interface Dependency {
5858 importVariable : string
5959}
6060
61- export const unplugin = createUnplugin ( ( options : ExternalPluginOptions ) => {
61+ export const unplugin = createUnplugin ( ( options : ExternalPluginOptions , meta ) => {
6262 return {
6363 name : 'unplugin-fluent-vue-external' ,
64- enforce : ' post',
64+ enforce : meta . framework === 'webpack' ? ' post' : undefined ,
6565 transformInclude ( id : string ) {
6666 return isVue ( id ) || isFtl ( id )
6767 } ,
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ import { createUnplugin } from 'unplugin'
44import type { SFCPluginOptions } from '../types'
55import { isCustomBlock , parseVueRequest } from '../loader-query'
66
7- export const unplugin = createUnplugin ( ( options : SFCPluginOptions ) => {
7+ export const unplugin = createUnplugin ( ( options : SFCPluginOptions , meta ) => {
88 const resolvedOptions = {
99 blockType : 'fluent' ,
1010 ...options ,
1111 }
1212
1313 return {
1414 name : 'unplugin-fluent-vue-sfc' ,
15- enforce : ' post',
15+ enforce : meta . framework === 'webpack' ? ' post' : undefined ,
1616 transformInclude ( id : string ) {
1717 const { query } = parseVueRequest ( id )
1818 return isCustomBlock ( query , resolvedOptions )
You can’t perform that action at this time.
0 commit comments