diff --git a/package.json b/package.json index d017fe38..28f04a90 100644 --- a/package.json +++ b/package.json @@ -21,12 +21,6 @@ ], "main": "./dist/index.js", "types": "./dist/index.d.ts", - "scripts": { - "build": "tsc", - "test": "tsx tests", - "dev": "tsx watch --conditions=development tests", - "lint": "eslint --cache ." - }, "imports": { "#esbuild-loader": { "types": "./src/index.ts", @@ -34,6 +28,12 @@ "default": "./dist/index.js" } }, + "scripts": { + "build": "tsc", + "test": "tsx tests", + "dev": "tsx watch --conditions=development tests", + "lint": "eslint --cache ." + }, "peerDependencies": { "webpack": "^4.40.0 || ^5.0.0" }, diff --git a/tests/specs/loader.ts b/tests/specs/loader.ts index 4c98c9a6..85e869ea 100644 --- a/tests/specs/loader.ts +++ b/tests/specs/loader.ts @@ -2,12 +2,12 @@ import { testSuite, expect } from 'manten'; import { build } from 'webpack-test-utils'; import webpack4 from 'webpack'; import webpack5 from 'webpack5'; -import type { MinifyPluginOptions } from '#esbuild-loader'; import { configureEsbuildLoader, configureCssLoader, } from '../utils'; import * as fixtures from '../fixtures.js'; +import type { MinifyPluginOptions } from '#esbuild-loader'; const { exportFile } = fixtures; diff --git a/tests/specs/plugin.ts b/tests/specs/plugin.ts index 83e09030..a056b64f 100644 --- a/tests/specs/plugin.ts +++ b/tests/specs/plugin.ts @@ -3,12 +3,12 @@ import { build } from 'webpack-test-utils'; import webpack4 from 'webpack'; import webpack5 from 'webpack5'; import * as esbuild from 'esbuild'; -import type { MinifyPluginOptions } from '#esbuild-loader'; import { configureEsbuildMinifyPlugin, configureMiniCssExtractPlugin, } from '../utils'; import * as fixtures from '../fixtures.js'; +import type { MinifyPluginOptions } from '#esbuild-loader'; const assertMinified = (code: string) => { expect(code).not.toMatch(/\s{2,}/);