
If another package wants to import `src/index.js`, it needs to replicate the loader config in `webpack.config.js`. To avoid this, package the module in `dist.js` and set that as the module to require. I changed `main` to point to this so that other packages can just `require('scratch-blocks')`, but it would also work for our purposes to add `"webpack": "./dist.js"` if we want to keep `src/index.js` as `main`.
8 lines
55 B
Plaintext
8 lines
55 B
Plaintext
# Mac OS
|
|
.DS_Store
|
|
|
|
# NPM
|
|
/node_modules
|
|
npm-*
|
|
/dist.js
|