Skip to content

Commit 40994e9

Browse files
committed
chore: fix sfc playground ci build
1 parent 80ed275 commit 40994e9

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"serve": "serve",
2222
"open": "open http://localhost:5000/packages/template-explorer/local.html",
2323
"preinstall": "node ./scripts/checkYarn.js",
24-
"prebuild-sfc-playground": "node scripts/build.js compiler shared -af cjs && node scripts/build.js runtime reactivity shared -af esm-bundler && node scripts/build.js vue -f esm-bundler-runtime && node scripts/build.js vue -f esm-browser-runtime && node scripts/build.js compiler-sfc -f esm-browser",
24+
"prebuild-sfc-playground": "node scripts/build.js compiler ref-transform shared -af cjs && node scripts/build.js runtime reactivity shared -af esm-bundler && node scripts/build.js vue -f esm-bundler-runtime && node scripts/build.js vue -f esm-browser-runtime && node scripts/build.js compiler-sfc -f esm-browser",
2525
"build-sfc-playground": "cd packages/sfc-playground && vite build"
2626
},
2727
"types": "test-dts/index.d.ts",

packages/compiler-sfc/src/index.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export { compileTemplate } from './compileTemplate'
44
export { compileStyle, compileStyleAsync } from './compileStyle'
55
export { compileScript } from './compileScript'
66
export { rewriteDefault } from './rewriteDefault'
7-
export { generateCodeFrame } from '@vue/compiler-core'
87
export {
98
shouldTransform as shouldTransformRef,
109
transform as transformRef,
@@ -16,6 +15,13 @@ export { parse as babelParse } from '@babel/parser'
1615
import MagicString from 'magic-string'
1716
export { MagicString }
1817
export { walk } from 'estree-walker'
18+
export {
19+
generateCodeFrame,
20+
walkIdentifiers,
21+
extractIdentifiers,
22+
isInDestructureAssignment,
23+
isStaticProperty
24+
} from '@vue/compiler-core'
1925

2026
// Types
2127
export {

packages/sfc-playground/src/output/moduleCompiler.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { store, File } from '../store'
22
import { MAIN_FILE } from '../transform'
3-
import { babelParse, MagicString, walk } from '@vue/compiler-sfc'
43
import {
4+
babelParse,
5+
MagicString,
6+
walk,
57
walkIdentifiers,
68
extractIdentifiers,
79
isInDestructureAssignment,
810
isStaticProperty
9-
} from '@vue/compiler-core'
11+
} from '@vue/compiler-sfc'
1012
import { babelParserDefaultPlugins } from '@vue/shared'
1113
import { ExportSpecifier, Identifier, Node } from '@babel/types'
1214

0 commit comments

Comments
 (0)