Skip to content

Commit c820c7a

Browse files
committed
Fixed import
1 parent 3c7cb39 commit c820c7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/piral-cli-vite7/src/plugins/systemjs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import babel from '@babel/core';
1+
import { transformAsync } from '@babel/core';
22
import babelSystemjs from '@babel/plugin-transform-modules-systemjs';
33
import babelDynamicImport from '@babel/plugin-transform-dynamic-import';
44
import type { Plugin } from 'vite';
55

66
const plugin: Plugin = {
77
name: 'transform-chunk-systemjs',
88
async renderChunk(code, _chunk) {
9-
const result = await babel.transformAsync(code, {
9+
const result = await transformAsync(code, {
1010
babelrc: false,
1111
configFile: false,
1212
sourceMaps: true,

0 commit comments

Comments
 (0)