Skip to content

Commit

Permalink
chore: fix sfc playground ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 23, 2021
1 parent 80ed275 commit 40994e9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -21,7 +21,7 @@
"serve": "serve",
"open": "open http://localhost:5000/packages/template-explorer/local.html",
"preinstall": "node ./scripts/checkYarn.js",
"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",
"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",
"build-sfc-playground": "cd packages/sfc-playground && vite build"
},
"types": "test-dts/index.d.ts",
Expand Down
8 changes: 7 additions & 1 deletion packages/compiler-sfc/src/index.ts
Expand Up @@ -4,7 +4,6 @@ export { compileTemplate } from './compileTemplate'
export { compileStyle, compileStyleAsync } from './compileStyle'
export { compileScript } from './compileScript'
export { rewriteDefault } from './rewriteDefault'
export { generateCodeFrame } from '@vue/compiler-core'
export {
shouldTransform as shouldTransformRef,
transform as transformRef,
Expand All @@ -16,6 +15,13 @@ export { parse as babelParse } from '@babel/parser'
import MagicString from 'magic-string'
export { MagicString }
export { walk } from 'estree-walker'
export {
generateCodeFrame,
walkIdentifiers,
extractIdentifiers,
isInDestructureAssignment,
isStaticProperty
} from '@vue/compiler-core'

// Types
export {
Expand Down
6 changes: 4 additions & 2 deletions packages/sfc-playground/src/output/moduleCompiler.ts
@@ -1,12 +1,14 @@
import { store, File } from '../store'
import { MAIN_FILE } from '../transform'
import { babelParse, MagicString, walk } from '@vue/compiler-sfc'
import {
babelParse,
MagicString,
walk,
walkIdentifiers,
extractIdentifiers,
isInDestructureAssignment,
isStaticProperty
} from '@vue/compiler-core'
} from '@vue/compiler-sfc'
import { babelParserDefaultPlugins } from '@vue/shared'
import { ExportSpecifier, Identifier, Node } from '@babel/types'

Expand Down

0 comments on commit 40994e9

Please sign in to comment.