This repository was archived by the owner on Sep 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +14
-5
lines changed Expand file tree Collapse file tree 6 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
export const entry = {
2
2
'sub-style' : '../packages/sub-style/index.ts' , // @unplugin -vue-ce/sub-style
3
3
'v-model' : '../packages/v-model/index.ts' , // @unplugin -vue-ce/v-model
4
- 'switch-shadow' : '../packages/switch-shadow/index.ts' , // @unplugin -vue-ce/switch-shadow
4
+ // 'switch-shadow': '../packages/switch-shadow/index.ts', // @unplugin-vue-ce/switch-shadow
5
5
'utils' : '../utils/index.ts' , // @unplugin -vue-ce/utils
6
6
'index' : '../packages/core/index.ts' , // unplugin-vue-ce
7
7
}
8
8
9
9
export const entryPkg = {
10
10
'v-model' : '../packages/v-model' ,
11
- 'switch-shadow' : '../packages/switch-shadow' ,
11
+ // 'switch-shadow': '../packages/switch-shadow',
12
12
'sub-style' : '../packages/sub-style' ,
13
13
'utils' : '../utils' ,
14
14
}
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ export default series(
5
5
runTask ( 'publish @unplugin-vue-ce/utils' , 'cd dist/utils && pnpm run publish:npm' ) ,
6
6
runTask ( 'publish @unplugin-vue-ce/v-model' , 'cd dist/v-model && pnpm run publish:npm' ) ,
7
7
runTask ( 'publish @unplugin-vue-ce/sub-style' , 'cd dist/sub-style && pnpm run publish:npm' ) ,
8
- runTask ( 'publish @unplugin-vue-ce/switch-shadow' , 'cd dist/switch-shadow && pnpm run publish:npm' ) ,
8
+ // runTask('publish @unplugin-vue-ce/switch-shadow', 'cd dist/switch-shadow && pnpm run publish:npm'),
9
9
runTask ( 'publish unplugin-vue-ce' , 'cd dist && pnpm run publish:npm' ) ,
10
10
)
Original file line number Diff line number Diff line change 1
1
import { unVueCEVModel } from '@unplugin-vue-ce/v-model'
2
2
import { unVueCESubStyle } from '@unplugin-vue-ce/sub-style'
3
- import { unVueCEShadow } from '@unplugin-vue-ce/switch-shadow'
3
+ // import { unVueCEShadow } from '@unplugin-vue-ce/switch-shadow'
4
4
import { createUnplugin } from 'unplugin'
5
5
const unplugin = createUnplugin ( ( ) => {
6
6
return [
7
7
unVueCEVModel ( ) ,
8
8
unVueCESubStyle ( ) ,
9
- unVueCEShadow ( ) ,
9
+ // unVueCEShadow(),
10
10
]
11
11
} )
12
12
export const viteVueCE = unplugin . vite
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ export const unVueCESubStyle = (): any => {
9
9
return {
10
10
name : `${ NAME } :sub-style` ,
11
11
enforce : 'post' ,
12
+ transformInclude ( id : string ) {
13
+ return id . endsWith ( '.js' )
14
+ } ,
12
15
async transform ( code : string , id : string ) {
13
16
const mgcStr = new MagicString ( code )
14
17
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ export const unVueCEShadow = (): any => {
8
8
return {
9
9
name : `${ NAME } :switch-shadow` ,
10
10
enforce : 'post' ,
11
+ transformInclude ( id : string ) {
12
+ return id . endsWith ( '.js' )
13
+ } ,
11
14
async transform ( code : string , id : string ) {
12
15
const mgcStr = new MagicString ( code )
13
16
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ export const unVueCEVModel = (): any => {
11
11
return {
12
12
name : `${ NAME } :v-model` ,
13
13
enforce : 'post' ,
14
+ transformInclude ( id : string ) {
15
+ return id . endsWith ( '.js' )
16
+ } ,
14
17
async transform ( code : string , id : string ) {
15
18
const mgcStr = new MagicString ( code )
16
19
// build only
You can’t perform that action at this time.
0 commit comments