Skip to content

Commit

Permalink
fix: support import.meta.url in ts esm config file
Browse files Browse the repository at this point in the history
close #1499
  • Loading branch information
yyx990803 committed Jan 12, 2021
1 parent 6bdc3eb commit cf5f3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ async function bundleConfigFile(
treeshake: false,
plugins: [
// use esbuild + node-resolve to support .ts files
esbuildPlugin({ target: 'es2019' }),
esbuildPlugin({ target: 'esnext' }),
resolvePlugin({
root: path.dirname(fileName),
isBuild: true,
Expand Down

0 comments on commit cf5f3ab

Please sign in to comment.