Skip to content

Commit

Permalink
build: upgrade to rollup@3 and fix re-export error (#4108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Sep 15, 2023
1 parent b245ce3 commit 701415b
Show file tree
Hide file tree
Showing 7 changed files with 126 additions and 393 deletions.
3 changes: 1 addition & 2 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"dependencies": {
"estree-walker": "^3.0.3",
"magic-string": "^0.30.1",
"modern-node-polyfills": "^0.1.3",
"modern-node-polyfills": "^1.0.0",
"sirv": "^2.0.3"
},
"devDependencies": {
Expand All @@ -54,7 +54,6 @@
"@vitest/ui": "workspace:*",
"@vitest/ws-client": "workspace:*",
"periscopic": "^3.1.0",
"rollup": "^3.26.0",
"vitest": "workspace:*"
}
}
4 changes: 2 additions & 2 deletions packages/vite-node/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "vite-node",
"type": "module",
"version": "0.34.4",
"description": "Vite as Node.js runtime",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
Expand Down Expand Up @@ -91,7 +92,6 @@
},
"devDependencies": {
"@jridgewell/trace-mapping": "^0.3.18",
"@types/debug": "^4.1.8",
"rollup": "^2.79.1"
"@types/debug": "^4.1.8"
}
}
2 changes: 1 addition & 1 deletion packages/vite-node/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import commonjs from '@rollup/plugin-commonjs'
import json from '@rollup/plugin-json'
import alias from '@rollup/plugin-alias'
import { defineConfig } from 'rollup'
import pkg from './package.json'
import pkg from './package.json' assert { type: 'json' }

const entries = {
'index': 'src/index.ts',
Expand Down
3 changes: 1 addition & 2 deletions packages/vite-node/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { existsSync } from 'node:fs'
import { join, normalize, relative, resolve } from 'pathe'
import type { TransformResult, ViteDevServer } from 'vite'
import createDebug from 'debug'
import type { EncodedSourceMap } from '@jridgewell/trace-mapping'
import type { DebuggerOptions, FetchResult, ViteNodeResolveId, ViteNodeServerOptions } from './types'
import type { DebuggerOptions, EncodedSourceMap, FetchResult, ViteNodeResolveId, ViteNodeServerOptions } from './types'
import { shouldExternalize } from './externalize'
import { normalizeModuleId, toArray, toFilePath, withTrailingSlash } from './utils'
import { Debugger } from './debug'
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-node/src/source-map.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { TransformResult } from 'vite'
import { dirname, isAbsolute, relative, resolve } from 'pathe'
import type { EncodedSourceMap } from '@jridgewell/trace-mapping'
import { withTrailingSlash } from './utils'
import { install } from './source-map-handler'
import type { EncodedSourceMap } from './types'

interface InstallSourceMapSupportOptions {
getSourceMap: (source: string) => EncodedSourceMap | null | undefined
Expand Down
3 changes: 1 addition & 2 deletions packages/ws-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"ws": "^8.13.0"
},
"devDependencies": {
"@vitest/runner": "workspace:*",
"rollup": "^2.79.1"
"@vitest/runner": "workspace:*"
}
}
Loading

0 comments on commit 701415b

Please sign in to comment.