feat: add vite plugin (#3187)
Second attempt after we had to revert https://github.com/denoland/fresh/pull/3185
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: /[/\\]+build_id\.ts$/ }, (args) => {
|
||||
build.onResolve({ filter: /^fresh\/build-id$/ }, (args) => {
|
||||
return {
|
||||
path: args.path,
|
||||
namespace: "fresh-internal",
|
||||
};
|
||||
});
|
||||
build.onLoad({
|
||||
filter: /[/\\]build_id\.ts$/,
|
||||
filter: /^fresh\/build-id$/,
|
||||
namespace: "fresh-internal",
|
||||
}, () => {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user