feat(build): switch to rollup 3 and vite 4 (#1591)

pull/1677/merge
Divyansh Singh 2 years ago committed by GitHub
parent 4c5a892d77
commit ae33896a32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -80,13 +80,13 @@
"dependencies": { "dependencies": {
"@docsearch/css": "^3.3.0", "@docsearch/css": "^3.3.0",
"@docsearch/js": "^3.3.0", "@docsearch/js": "^3.3.0",
"@vitejs/plugin-vue": "^3.2.0", "@vitejs/plugin-vue": "^4.0.0",
"@vue/devtools-api": "^6.4.5", "@vue/devtools-api": "^6.4.5",
"@vueuse/core": "^9.4.0", "@vueuse/core": "^9.6.0",
"body-scroll-lock": "4.0.0-beta.0", "body-scroll-lock": "4.0.0-beta.0",
"shiki": "^0.11.1", "shiki": "^0.11.1",
"vite": "^3.2.3", "vite": "^4.0.0",
"vue": "^3.2.41" "vue": "^3.2.45"
}, },
"devDependencies": { "devDependencies": {
"@mdit-vue/plugin-component": "^0.11.1", "@mdit-vue/plugin-component": "^0.11.1",
@ -97,8 +97,8 @@
"@mdit-vue/plugin-toc": "^0.11.1", "@mdit-vue/plugin-toc": "^0.11.1",
"@mdit-vue/shared": "^0.11.0", "@mdit-vue/shared": "^0.11.0",
"@rollup/plugin-alias": "^4.0.2", "@rollup/plugin-alias": "^4.0.2",
"@rollup/plugin-commonjs": "^23.0.2", "@rollup/plugin-commonjs": "^23.0.4",
"@rollup/plugin-json": "^5.0.1", "@rollup/plugin-json": "^5.0.2",
"@rollup/plugin-node-resolve": "^15.0.1", "@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.1", "@rollup/plugin-replace": "^5.0.1",
"@types/body-scroll-lock": "^3.1.0", "@types/body-scroll-lock": "^3.1.0",
@ -115,25 +115,25 @@
"@types/markdown-it-emoji": "^2.0.2", "@types/markdown-it-emoji": "^2.0.2",
"@types/micromatch": "^4.0.2", "@types/micromatch": "^4.0.2",
"@types/minimist": "^1.2.2", "@types/minimist": "^1.2.2",
"@types/node": "^18.11.9", "@types/node": "^18.11.13",
"@types/prompts": "^2.4.1", "@types/prompts": "^2.4.2",
"chokidar": "^3.5.3", "chokidar": "^3.5.3",
"compression": "^1.7.4", "compression": "^1.7.4",
"conventional-changelog-cli": "^2.2.2", "conventional-changelog-cli": "^2.2.2",
"cross-spawn": "^7.0.3", "cross-spawn": "^7.0.3",
"debug": "^4.3.4", "debug": "^4.3.4",
"enquirer": "^2.3.6", "enquirer": "^2.3.6",
"esbuild": "^0.15.13", "esbuild": "^0.16.4",
"escape-html": "^1.0.3", "escape-html": "^1.0.3",
"execa": "^6.1.0", "execa": "^6.1.0",
"fast-glob": "^3.2.12", "fast-glob": "^3.2.12",
"fs-extra": "^10.1.0", "fs-extra": "^11.1.0",
"get-port": "^5.1.1", "get-port": "^6.1.2",
"lint-staged": "^13.0.3", "lint-staged": "^13.1.0",
"lru-cache": "^7.14.1", "lru-cache": "^7.14.1",
"markdown-it": "^13.0.1", "markdown-it": "^13.0.1",
"markdown-it-anchor": "^8.6.5", "markdown-it-anchor": "^8.6.5",
"markdown-it-attrs": "^4.1.4", "markdown-it-attrs": "^4.1.6",
"markdown-it-container": "^3.0.0", "markdown-it-container": "^3.0.0",
"markdown-it-emoji": "^2.0.2", "markdown-it-emoji": "^2.0.2",
"micromatch": "^4.0.5", "micromatch": "^4.0.5",
@ -142,23 +142,23 @@
"ora": "^5.4.1", "ora": "^5.4.1",
"picocolors": "^1.0.0", "picocolors": "^1.0.0",
"pkg-dir": "^5.0.0", "pkg-dir": "^5.0.0",
"playwright-chromium": "^1.27.1", "playwright-chromium": "^1.28.1",
"polka": "1.0.0-next.22", "polka": "1.0.0-next.22",
"prettier": "^2.7.1", "prettier": "^2.8.1",
"prompts": "^2.4.2", "prompts": "^2.4.2",
"punycode": "^2.1.1", "punycode": "^2.1.1",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"rollup": "^2.79.1", "rollup": "^3.7.2",
"rollup-plugin-dts": "^4.2.3", "rollup-plugin-dts": "^5.0.0",
"rollup-plugin-esbuild": "^4.10.2", "rollup-plugin-esbuild": "^5.0.0",
"semver": "^7.3.8", "semver": "^7.3.8",
"shiki-processor": "^0.1.1", "shiki-processor": "^0.1.1",
"simple-git-hooks": "^2.8.1", "simple-git-hooks": "^2.8.1",
"sirv": "^2.0.2", "sirv": "^2.0.2",
"supports-color": "^9.2.3", "supports-color": "^9.3.0",
"typescript": "~4.8.4", "typescript": "~4.9.4",
"vitest": "^0.25.0", "vitest": "^0.25.7",
"vue-tsc": "^1.0.9", "vue-tsc": "^1.0.12",
"wait-on": "^6.0.1" "wait-on": "^6.0.1"
}, },
"pnpm": { "pnpm": {

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
import { promises as fs } from 'fs' import { promises as fs } from 'fs'
import { builtinModules } from 'module' import { builtinModules, createRequire } from 'module'
import { resolve } from 'path' import { resolve } from 'path'
import { fileURLToPath } from 'url' import { fileURLToPath } from 'url'
import { RollupOptions, defineConfig } from 'rollup' import { RollupOptions, defineConfig } from 'rollup'
@ -10,7 +10,9 @@ import json from '@rollup/plugin-json'
import replace from '@rollup/plugin-replace' import replace from '@rollup/plugin-replace'
import alias from '@rollup/plugin-alias' import alias from '@rollup/plugin-alias'
import dts from 'rollup-plugin-dts' import dts from 'rollup-plugin-dts'
import pkg from './package.json'
const require = createRequire(import.meta.url)
const pkg = require('./package.json')
const DEV = !!process.env.DEV const DEV = !!process.env.DEV
const PROD = !DEV const PROD = !DEV

Loading…
Cancel
Save