There was an error while loading. Please reload this page.
build-id
1 parent 815b194 commit 5fffe6cCopy full SHA for 5fffe6c
1 file changed
packages/fresh/src/dev/esbuild.ts
@@ -166,15 +166,15 @@ function buildIdPlugin(buildId: string): EsbuildPlugin {
166
return {
167
name: "fresh-build-id",
168
setup(build) {
169
- build.onResolve({ filter: /^(jsr:)?@fresh\/build-id(@.*)?$/ }, (args) => {
+ build.onResolve({ filter: /^(jsr:)?@fresh\/build-id/ }, (args) => {
170
171
path: args.path,
172
- namespace: "fresh-internal",
+ namespace: "fresh-internal-build-id",
173
};
174
});
175
build.onLoad({
176
- filter: /^(jsr:)?@fresh\/build-id$/,
177
+ filter: /.*/,
178
}, () => {
179
180
contents: `export const BUILD_ID = "${buildId}";`,
0 commit comments