We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2478f30 commit 3f0c9f2Copy full SHA for 3f0c9f2
bin/build.mjs
@@ -3,14 +3,12 @@ import minimist from 'minimist';
3
4
const argv = minimist(process.argv.slice(2));
5
6
-const bundleNodeModules = new Set(['preact', 'preact-render-to-string']);
7
-
8
const externalResolverPlugin = {
9
name: 'external-resolver',
10
async setup(build) {
11
- build.onResolve({filter: /.*/}, (args) => {
12
- if (!args.path.startsWith('.') && !bundleNodeModules.has(args.path)) {
13
- return {external: true, path: args.path};
+ build.onResolve({filter: /.*/}, ({path}) => {
+ if (!path.startsWith('.')) {
+ return {external: true, path};
14
}
15
});
16
},
0 commit comments