unframer 2.5.1 → 2.5.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/README.md +6 -0
- package/dist/esbuild.d.ts +2 -1
- package/dist/esbuild.d.ts.map +1 -1
- package/dist/esbuild.js +7 -1
- package/dist/esbuild.js.map +1 -1
- package/dist/framer.d.ts.map +1 -1
- package/dist/framer.js +927 -450
- package/dist/framer.js.map +1 -1
- package/esm/esbuild.d.ts +2 -1
- package/esm/esbuild.d.ts.map +1 -1
- package/esm/esbuild.js +7 -1
- package/esm/esbuild.js.map +1 -1
- package/esm/framer.d.ts.map +1 -1
- package/esm/framer.js +919 -444
- package/esm/framer.js.map +1 -1
- package/package.json +1 -1
- package/src/esbuild.ts +7 -0
- package/src/framer.js +1003 -469
package/package.json
CHANGED
package/src/esbuild.ts
CHANGED
|
@@ -12,6 +12,7 @@ export const externalPackages = [
|
|
|
12
12
|
let redirectCache = new Map<string, Promise<string>>()
|
|
13
13
|
export function esbuildPluginBundleDependencies({
|
|
14
14
|
signal = undefined as AbortSignal | undefined,
|
|
15
|
+
externalizeNpm = false,
|
|
15
16
|
}) {
|
|
16
17
|
const codeCache = new Map()
|
|
17
18
|
|
|
@@ -72,6 +73,12 @@ export function esbuildPluginBundleDependencies({
|
|
|
72
73
|
namespace,
|
|
73
74
|
}
|
|
74
75
|
}
|
|
76
|
+
if (externalizeNpm) {
|
|
77
|
+
return {
|
|
78
|
+
path: args.path,
|
|
79
|
+
external: true,
|
|
80
|
+
}
|
|
81
|
+
}
|
|
75
82
|
|
|
76
83
|
const url = `https://esm.sh/${args.path}`
|
|
77
84
|
|