소스 검색

Update package.json

when I run 

```
$ parcel build --public-url ./ --no-cache src/pages/*.html
🚨 Build failed.
@parcel/core: Failed to resolve '@ryangjchandler/spruce' from './src/ts/mutable.ts'
@parcel/resolver-default: Could not load './dist/foo.module.js' from module '@ryangjchandler/spruce' found in package.json#module
/home/xk/pomelo/map-scratch-off/node_modules/@ryangjchandler/spruce/package.json:14:15
  13 |     "umd:main": "dist/spruce.umd.js",
> 14 |     "module": "dist/foo.module.js",
>    |               ^^^^^^^^^^^^^^^^^^^^ './dist/foo.module.js' does not exist, did you mean './dist/spruce.module.js'?'

```
it causes my build to fail

probably related to https://github.com/parcel-bundler/parcel/issues/3500
I think it's not a good design choice for parcel v2 but it still is a bug/annoying

I'm not sure what all the implications are for removing this though
Jacob Chapman 5 년 전
부모
커밋
12794205bf
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      package.json

+ 0 - 1
package.json

@@ -11,7 +11,6 @@
     "source": "src/index.js",
     "main": "dist/spruce.js",
     "umd:main": "dist/spruce.umd.js",
-    "module": "dist/foo.module.js",
     "scripts": {
         "build": "microbundle",
         "watch": "microbundle watch",