You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
▲ [WARNING] Ignoring this import because "../../node_modules/@solid-devtools/debugger/dist/setup.js" was marked as having no side effects [ignored-bare-import]
src/Ingame.tsx:16:7:
16 │ import '@solid-devtools/debugger/setup';
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"sideEffects" is false in the enclosing "package.json" file:
../../node_modules/@solid-devtools/debugger/package.json:17:2:
17 │ "sideEffects": false,
╵ ~~~~~~~~~~~~~
This looks like a side effect to me. You could either move this entire body of code into a "injectDevtools" function (I think this is what react does) or just mark the entire package as having side effects in the package.json.
The text was updated successfully, but these errors were encountered:
Alloyed
changed the title
solid-devtools/devtools seems to be marked as side-effect free when it shouldn't be
@solid-devtools/debugger seems to be marked as side-effect free when it shouldn't be
Mar 19, 2024
output from esbuild:
https://github.com/thetarnav/solid-devtools/blob/main/packages/debugger/src/setup.ts#L53
This looks like a side effect to me. You could either move this entire body of code into a "injectDevtools" function (I think this is what react does) or just mark the entire package as having side effects in the
package.json
.EDIT: workaround: https://esbuild.github.io/api/#ignore-annotations
The text was updated successfully, but these errors were encountered: