Skip to content

Commit

Permalink
refactor!: remove webpack dynamic require plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 13, 2024
1 parent f7e1c46 commit ba3ee3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 145 deletions.
17 changes: 0 additions & 17 deletions src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import unimportPlugin from "unimport/unplugin";
import { rollup as unwasm } from "unwasm/plugin";
import { appConfig } from "./plugins/app-config";
import { database } from "./plugins/database";
import { dynamicRequire } from "./plugins/dynamic-require";
import { esbuild } from "./plugins/esbuild";
import { externals } from "./plugins/externals";
import { handlers } from "./plugins/handlers";
Expand Down Expand Up @@ -288,22 +287,6 @@ export const getRollupConfig = (nitro: Nitro): RollupConfig => {
})
);

// Dynamic Require Support
rollupConfig.plugins.push(
dynamicRequire({
dir: resolve(nitro.options.buildDir, "dist/server"),
inline:
nitro.options.node === false || nitro.options.inlineDynamicImports,
ignore: [
"client.manifest.mjs",
"server.js",
"server.cjs",
"server.mjs",
"server.manifest.mjs",
],
})
);

// Server assets
rollupConfig.plugins.push(serverAssets(nitro));

Expand Down
128 changes: 0 additions & 128 deletions src/rollup/plugins/dynamic-require.ts

This file was deleted.

0 comments on commit ba3ee3c

Please sign in to comment.