Skip to content

Commit

Permalink
fix(esbuild): import esbuild correctly (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrkp committed Jun 22, 2021
1 parent 841aaa4 commit a22522b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/esbuild/src/index.ts
Expand Up @@ -8,7 +8,7 @@ import path from 'path';
import fs from 'fs';
import type { PluginOptions, Preprocessor } from '@linaria/babel-preset';
import { slugify, transform } from '@linaria/babel-preset';
import esbuild, { Plugin, TransformOptions, Loader } from 'esbuild';
import { transformSync, Plugin, TransformOptions, Loader } from 'esbuild';

type EsbuildPluginOptions = {
sourceMap?: boolean;
Expand Down Expand Up @@ -55,7 +55,7 @@ export default function linaria({
};
}

const { code } = esbuild.transformSync(rawCode, {
const { code } = transformSync(rawCode, {
...esbuildOptions,
loader,
});
Expand Down

0 comments on commit a22522b

Please sign in to comment.