unplugin-oxc 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esbuild.js +1 -1
- package/dist/farm.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/rolldown.js +1 -1
- package/dist/rollup.js +1 -1
- package/dist/rspack.js +1 -1
- package/dist/{src-Ctwdi8QE.js → src-CFVXTEFR.js} +5 -1
- package/dist/unloader.js +1 -1
- package/dist/vite.js +1 -1
- package/dist/webpack.js +1 -1
- package/package.json +1 -1
package/dist/esbuild.js
CHANGED
package/dist/farm.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/rolldown.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/rspack.js
CHANGED
|
@@ -27,7 +27,7 @@ const Oxc = createUnplugin((rawOptions = {}, { framework }) => {
|
|
|
27
27
|
const filter = createFilter(options.include, options.exclude);
|
|
28
28
|
const renderChunk = options.minify !== false ? (code, chunk) => {
|
|
29
29
|
const result = minify(chunk.fileName, code, {
|
|
30
|
-
...options.minify,
|
|
30
|
+
...options.minify === true ? {} : options.minify,
|
|
31
31
|
sourcemap: options.sourcemap
|
|
32
32
|
});
|
|
33
33
|
return {
|
|
@@ -62,6 +62,10 @@ const Oxc = createUnplugin((rawOptions = {}, { framework }) => {
|
|
|
62
62
|
});
|
|
63
63
|
const directory = path.dirname(importer || id);
|
|
64
64
|
const resolved = await resolver.async(directory, id);
|
|
65
|
+
if (resolved.error?.startsWith("Builtin module")) return {
|
|
66
|
+
id,
|
|
67
|
+
external: true
|
|
68
|
+
};
|
|
65
69
|
if (resolved.path) return resolved.path;
|
|
66
70
|
} : undefined,
|
|
67
71
|
transformInclude(id) {
|
package/dist/unloader.js
CHANGED
package/dist/vite.js
CHANGED
package/dist/webpack.js
CHANGED