Commit 7ab262e
authored
fix: js_binary needs to see type:module (#876)
Fixes
```
node:97733) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/alexeagle/Library/Caches/bazel/_bazel_alexeagle/01f2ac883bc99a4cd7d1820c0ae3536f/execroot/_main/bazel-out/darwin_arm64-fastbuild/bin/packages/hello/hello_/hello.runfiles/_main/packages/hello/index.js is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to /Users/alexeagle/Library/Caches/bazel/_bazel_alexeagle/01f2ac883bc99a4cd7d1820c0ae3536f/execroot/_main/package.json.
```1 parent 5734980 commit 7ab262e
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments