Open rikgirbes opened 1 year ago
I have a similar issue:
Warning:
$ bun run build
$ mkdir -p dist && cp -r ./public/* ./dist && bun build ./src/index.ts --minify --splitting --outdir dist/
./index.js 465.93 KB
39 | "*.scss"
^
warn: wildcard sideEffects are not supported yet, which means this package will be deoptimized
at /path-to-my-project/node_modules/highlight.js/package.json:39:5
[93ms] bundle 120 modules
- `package.json`:
```json
"sideEffects": [
"./es/common.js",
"./lib/common.js",
"*.css",
"*.scss"
],
1.0.26+c75e768a6
Linux 6.5.0-17-generic #17~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC x86_64 x86_64 x86_64 GNU/Linux
package.json
with highlight.js
installed.similar
any news ?
What version of Bun is running?
1.0.1+31aec4ebe325982fc0ef27498984b0ad9969162b
What platform is your computer?
Darwin 22.5.0 x86_64 i386
What steps can reproduce the bug?
package.json
withinteractjs
installed.Index file that references interactjs.
Running
bun build ./src/index.ts --outdir ./public/dist --splitting --sourcemap=inline
What is the expected behavior?
Bundle without any warnings.
What do you see instead?
Additional information
Looking into
interactjs/package.json
, the contents this warning is referring to: