This reverts commit a1571b76ed.
It broke fresh.deno.dev :S
This commit is contained in:
+2
-2
@@ -166,14 +166,14 @@ function buildIdPlugin(buildId: string): EsbuildPlugin {
|
||||
return {
|
||||
name: "fresh-build-id",
|
||||
setup(build) {
|
||||
build.onResolve({ filter: /^fresh\/build-id$/ }, (args) => {
|
||||
build.onResolve({ filter: /[/\\]+build_id\.ts$/ }, (args) => {
|
||||
return {
|
||||
path: args.path,
|
||||
namespace: "fresh-internal",
|
||||
};
|
||||
});
|
||||
build.onLoad({
|
||||
filter: /^fresh\/build-id$/,
|
||||
filter: /[/\\]build_id\.ts$/,
|
||||
namespace: "fresh-internal",
|
||||
}, () => {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user