Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/vue/src/index-with-vapor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// for type generation only
export * from './index'
export * from '@vue/runtime-vapor'
// export * from '@vue/runtime-vapor'
1 change: 1 addition & 0 deletions packages/vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ registerRuntimeCompiler(compileToFunction)

export { compileToFunction as compile }
export * from '@vue/runtime-dom'
export * from '@vue/runtime-vapor'
2 changes: 1 addition & 1 deletion packages/vue/src/runtime-with-vapor.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './runtime'
export * from '@vue/runtime-vapor'
// export * from '@vue/runtime-vapor'
1 change: 1 addition & 0 deletions packages/vue/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ if (__DEV__) {
}

export * from '@vue/runtime-dom'
export * from '@vue/runtime-vapor'

export const compile = (_template: string): RenderFunction => {
if (__DEV__) {
Expand Down
28 changes: 14 additions & 14 deletions scripts/trim-vapor-exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ export function trimVaporExportsPlugin(format, pkgName) {
return []
} else {
return [
{
name: 'trim-vapor-exports',
transform: {
filter: {
id: {
include: /runtime-(core|dom)\/src\/index\.ts$/,
},
},
handler(code) {
const index = code.lastIndexOf('// VAPOR ---')
return code.slice(0, index)
},
},
},
// {
// name: 'trim-vapor-exports',
// transform: {
// filter: {
// id: {
// include: /runtime-(core|dom)\/src\/index\.ts$/,
// },
// },
// handler(code) {
// const index = code.lastIndexOf('// VAPOR ---')
// return code.slice(0, index)
// },
// },
// },
]
}
}
Loading