We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0006c47 commit 5b061edCopy full SHA for 5b061ed
2 files changed
packages/plugin-vite/src/mod.ts
@@ -38,7 +38,6 @@ export function fresh(config?: FreshViteConfig): Plugin[] {
38
"react-dom": "preact/compat",
39
react: "preact/compat",
40
},
41
- noExternal: true,
42
43
optimizeDeps: {
44
include: [
packages/plugin-vite/src/plugins/patches.ts
@@ -1,6 +1,5 @@
1
import type { Plugin } from "vite";
2
import * as babel from "@babel/core";
3
-import { cjsPlugin } from "./commonjs.ts";
4
import { npmWorkaround } from "./npm_workaround.ts";
5
6
export function patches(): Plugin {
@@ -13,7 +12,7 @@ export function patches(): Plugin {
13
12
const res = babel.transformSync(code, {
14
filename: id,
15
babelrc: false,
16
- plugins: [npmWorkaround, cjsPlugin],
+ plugins: [npmWorkaround],
17
});
18
19
if (res?.code) {
0 commit comments