Skip to content

Commit

Permalink
refactor!: remove legacy-externals plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 13, 2024
1 parent d12305b commit 5d54ed1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 361 deletions.
6 changes: 1 addition & 5 deletions src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import { replace } from "./plugins/replace";
import { virtual } from "./plugins/virtual";
import { dynamicRequire } from "./plugins/dynamic-require";
import { externals } from "./plugins/externals";
import { externals as legacyExternals } from "./plugins/externals-legacy";
import { timing } from "./plugins/timing";
import { publicAssets } from "./plugins/public-assets";
import { serverAssets } from "./plugins/server-assets";
Expand Down Expand Up @@ -427,11 +426,8 @@ export const plugins = [
},
});
} else {
const externalsPlugin = nitro.options.experimental.legacyExternals
? legacyExternals
: externals;
rollupConfig.plugins.push(
externalsPlugin(
externals(
defu(nitro.options.externals, <NodeExternalsOptions>{
outDir: nitro.options.output.serverDir,
moduleDirectories: nitro.options.nodeModulesDirs,
Expand Down
355 changes: 0 additions & 355 deletions src/rollup/plugins/externals-legacy.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export interface NitroOptions extends PresetOptions {
};
};
experimental: {
legacyExternals?: boolean;
openAPI?: boolean;
/**
* See https://github.com/microsoft/TypeScript/pull/51669
Expand Down

0 comments on commit 5d54ed1

Please sign in to comment.