diff --git a/README.md b/README.md index 4965a2d..fc4174b 100644 --- a/README.md +++ b/README.md @@ -68,9 +68,9 @@ module.exports = { ## Usage ```ts -import text from './ts.ts?raw' import text2 from './js.js?raw' import text3 from './jsx.jsx?raw' +import text from './ts.ts?raw' ``` ## Sponsors diff --git a/src/core/options.ts b/src/core/options.ts index bee263f..f0e120c 100644 --- a/src/core/options.ts +++ b/src/core/options.ts @@ -1,5 +1,5 @@ -import type { TransformOptions } from 'esbuild' import type { FilterPattern } from '@rollup/pluginutils' +import type { TransformOptions } from 'esbuild' export interface Options { /** @default 'pre' */ diff --git a/src/index.ts b/src/index.ts index 91a6634..ad9482e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,10 +1,10 @@ import { readFile } from 'node:fs/promises' import path from 'node:path' -import { type UnpluginInstance, createUnplugin } from 'unplugin' import { createFilter } from '@rollup/pluginutils' -import { type Options, resolveOptions } from './core/options' -import type { PluginContext } from 'rollup' +import { createUnplugin, type UnpluginInstance } from 'unplugin' +import { resolveOptions, type Options } from './core/options' import type { Loader } from 'esbuild' +import type { PluginContext } from 'rollup' const unplugin: UnpluginInstance = createUnplugin( (rawOptions = {}, meta) => {