Skip to content

Commit

Permalink
Set side effect to false and remove css imports form default index.ts…
Browse files Browse the repository at this point in the history
…x so that tree-shaking works
  • Loading branch information
JBWatenbergScality committed Jun 29, 2024
1 parent 9768362 commit d0625c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"mainSrc": "src/lib/index.js",
"sideEffects": false,
"scripts": {
"analyze": "source-map-explorer 'dist/*.js'",
"build": "rimraf dist && tsc",
Expand Down
2 changes: 0 additions & 2 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import '@fortawesome/fontawesome-free/css/all.css';
import './index.css';
export { Banner } from './components/banner/Banner.component';
export { Breadcrumb } from './components/breadcrumb/Breadcrumb.component';
export { Button } from './components/button/Button.component';
Expand Down

0 comments on commit d0625c2

Please sign in to comment.