Skip to content

Commit

Permalink
Async import builtin-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
askoufis committed Aug 23, 2024
1 parent 9cfaba0 commit bc06314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/entries/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import process from 'process';
import { mockAdapter, setAdapter } from '@vanilla-extract/css/adapter';
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
import react from '@vitejs/plugin-react-swc';
import builtinModules from 'builtin-modules';
import fse from 'fs-extra';
import type { RollupOutput } from 'rollup';
import type { UserConfig as ViteConfig, Manifest } from 'vite';
Expand Down Expand Up @@ -33,6 +32,7 @@ export const build = async (inlineConfig?: PartialConfig) => {
'@vanilla-extract/css',
depGraph,
);
const builtinModules = (await import('builtin-modules')).default;

const commonBuildConfig: ViteConfig = {
...commonViteConfig(config),
Expand Down

0 comments on commit bc06314

Please sign in to comment.