Skip to content

Commit

Permalink
fix: use dev version of compiler (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored Jul 8, 2023
1 parent 4f55810 commit bfc3522
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 47 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"devDependencies": {
"@babel/types": "^7.22.5",
"@microsoft/api-extractor": "^7.36.0",
"@rollup/plugin-replace": "^5.0.2",
"@types/codemirror": "^5.60.8",
"@types/node": "^20.3.2",
"@vitejs/plugin-vue": "^4.2.3",
Expand Down
37 changes: 0 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 2 additions & 9 deletions vite.preview.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import replace from '@rollup/plugin-replace'

export default defineConfig({
plugins: [
Expand All @@ -13,6 +12,8 @@ export default defineConfig({
resolve: {
alias: {
path: 'path-browserify',
'@vue/compiler-dom': '@vue/compiler-dom/dist/compiler-dom.cjs.js',
'@vue/compiler-core': '@vue/compiler-core/dist/compiler-core.cjs.js',
},
},
build: {
Expand All @@ -22,13 +23,5 @@ export default defineConfig({
},
worker: {
format: 'es',
plugins: [
replace({
preventAssignment: true,
values: {
'process.env.NODE_ENV': JSON.stringify('production'),
},
}),
],
},
})

0 comments on commit bfc3522

Please sign in to comment.