"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",
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,
import MagicString from 'magic-string'
export { MagicString }
export { walk } from 'estree-walker'
+export {
+ generateCodeFrame,
+ walkIdentifiers,
+ extractIdentifiers,
+ isInDestructureAssignment,
+ isStaticProperty
+} from '@vue/compiler-core'
// Types
export {
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'