We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c7cb39 commit c820c7aCopy full SHA for c820c7a
packages/piral-cli-vite7/src/plugins/systemjs.ts
@@ -1,12 +1,12 @@
1
-import babel from '@babel/core';
+import { transformAsync } from '@babel/core';
2
import babelSystemjs from '@babel/plugin-transform-modules-systemjs';
3
import babelDynamicImport from '@babel/plugin-transform-dynamic-import';
4
import type { Plugin } from 'vite';
5
6
const plugin: Plugin = {
7
name: 'transform-chunk-systemjs',
8
async renderChunk(code, _chunk) {
9
- const result = await babel.transformAsync(code, {
+ const result = await transformAsync(code, {
10
babelrc: false,
11
configFile: false,
12
sourceMaps: true,
0 commit comments