Skip to content

Commit

Permalink
feat(core): support non-barrel file exports
Browse files Browse the repository at this point in the history
This should improve build performance since bundlers won't need to fetch
all files within react-md to be able to start trimming unused files
  • Loading branch information
mlaursen committed Mar 27, 2024
1 parent fb9e40c commit 93cb725
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,17 @@
"require": "./dist/test-utils/polyfills",
"default": "./dist/test-utils/polyfills/index.js"
},
"./test-utils/polyfills/*": {
"require": "./dist/test-utils/polyfills/*",
"default": "./dist/test-utils/polyfills/*.js"
},
"./test-utils/jest-setup": "./dist/test-utils/jest-setup.js",
"./test-utils/data-testid": "./dist/test-utils/data-testid.js",
"./test-utils": "./dist/test-utils/index.js",
"./test-utils/*": {
"require": "./dist/test-utils/*",
"default": "./dist/test-utils/*.js"
},
"./colors": {
"sass": "./dist/_colors.scss"
},
"./*": "./dist/*.js",
"./*/*": "./dist/*/*.js",
"./package.json": "./package.json"
},
"sideEffects": [
"dist/**/*.scss",
"dist/test-utils/polyfills"
"dist/test-utils/polyfills/**/*"
],
"scripts": {
"run-script": "tsx --tsconfig scripts/tsconfig.json",
Expand Down

0 comments on commit 93cb725

Please sign in to comment.