Skip to content

Commit

Permalink
fix: apply user transforms after esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 19, 2020
1 parent b62af73 commit 5b75f56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/node/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ export function createServer(config: ServerConfig = {}): Server {
moduleRewritePlugin,
moduleResolvePlugin,
vuePlugin,
cssPlugin,
...(transforms.length ? [createServerTransformPlugin(transforms)] : []),
esbuildPlugin,
jsonPlugin,
cssPlugin,
assetPathPlugin,
...(transforms.length ? [createServerTransformPlugin(transforms)] : []),
serveStaticPlugin
]
resolvedPlugins.forEach((m) => m(context))
Expand Down
2 changes: 0 additions & 2 deletions src/node/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ export interface Transform {
transform: (code: string, isImport: boolean) => string | Promise<string>
}

export function normalizeTransforms(transforms: Transform[]) {}

export function createServerTransformPlugin(
transforms: Transform[]
): ServerPlugin {
Expand Down

0 comments on commit 5b75f56

Please sign in to comment.