Update
This commit is contained in:
@ -6,7 +6,7 @@ import type * as esbuild from "esbuild";
|
||||
import { transformSync } from "@babel/core";
|
||||
|
||||
/**
|
||||
* An esbuild plugin that processes files with Babel if `getPlugins` returns any plugins.
|
||||
* An esbuild plugin that processes files with Babel if `plugins` is not empty.
|
||||
*/
|
||||
export const babelPlugin = ({
|
||||
filter = /\.[jt]sx?$/,
|
||||
@ -36,6 +36,7 @@ export const babelPlugin = ({
|
||||
|
||||
const { code } = transformSync(load(), {
|
||||
parserOpts: {
|
||||
createImportExpressions: true,
|
||||
plugins: [
|
||||
"jsx",
|
||||
"decorators",
|
||||
|
Reference in New Issue
Block a user