@normed/bundle 4.2.0 → 4.2.1

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/bundles/index.js CHANGED
@@ -69094,14 +69094,20 @@ var plugin = {
69094
69094
  build2.onResolve(
69095
69095
  { filter: filter2 },
69096
69096
  async (args) => {
69097
- return {
69098
- sideEffects: false,
69099
- pluginData: Object.assign({}, args.pluginData, {
69100
- [name]: {
69101
- entrypoint: args.kind === "entry-point"
69102
- }
69103
- })
69104
- };
69097
+ const resolvedPath = import_path4.default.resolve(args.resolveDir, args.path);
69098
+ if (import_fs3.default.existsSync(resolvedPath)) {
69099
+ return {
69100
+ sideEffects: false,
69101
+ path: import_path4.default.resolve(args.resolveDir, args.path),
69102
+ pluginData: Object.assign({}, args.pluginData, {
69103
+ [name]: {
69104
+ entrypoint: args.kind === "entry-point"
69105
+ }
69106
+ })
69107
+ };
69108
+ } else {
69109
+ return {};
69110
+ }
69105
69111
  }
69106
69112
  );
69107
69113
  build2.onLoad(