Skip to content

Commit

Permalink
Merge pull request #43 from PhillipsAuctionHouse/build-fix-vite
Browse files Browse the repository at this point in the history
Undo build config changes that were unnecessary
  • Loading branch information
davidicus authored Jan 30, 2024
2 parents befe595 + e2c876f commit 7885a7c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 19 deletions.
6 changes: 2 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
## [1.9.2](https://github.com/PhillipsAuctionHouse/seldon/compare/v1.9.1...v1.9.2) (2024-01-21)


### Bug Fixes

* still troublshooting build ([486dfc7](https://github.com/PhillipsAuctionHouse/seldon/commit/486dfc7c6baa228dc56eb158c1e89459485fd57a))
- still troublshooting build ([486dfc7](https://github.com/PhillipsAuctionHouse/seldon/commit/486dfc7c6baa228dc56eb158c1e89459485fd57a))

## [1.9.1](https://github.com/PhillipsAuctionHouse/seldon/compare/v1.9.0...v1.9.1) (2024-01-20)


### Bug Fixes

* tweak build settings to stop bundling classnames ([c26106c](https://github.com/PhillipsAuctionHouse/seldon/commit/c26106cd74a3aab4e3e09bb72611f34fc84ed20f))
- tweak build settings to stop bundling classnames ([c26106c](https://github.com/PhillipsAuctionHouse/seldon/commit/c26106cd74a3aab4e3e09bb72611f34fc84ed20f))

# [1.9.0](https://github.com/PhillipsAuctionHouse/seldon/compare/v1.8.0...v1.9.0) (2024-01-19)

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "@phillips/seldon",
"version": "1.9.2",
"type": "module",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
"default": "./dist/index.js"
}
},
"./dist/": {
Expand Down
2 changes: 1 addition & 1 deletion src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@import './typography';
// ⚛️ Components
@import 'components/Button/button';
@import 'components/DatePicker/datePicker';
// @import 'components/DatePicker/datePicker';
@import 'components/Header/header';
@import 'components/HeroBanner/heroBanner';
@import 'components/Input/input';
Expand Down
15 changes: 4 additions & 11 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ export default defineConfig({
},
],
},

build: {
minify: true,
reportCompressedSize: true,
lib: {
// Could also be a dictionary or array of multiple entry points
entry: ['index.ts'],
entry: ['src/index.ts'],
name: 'seldon',
},

rollupOptions: {
input: 'src/index.ts',
output: [
Expand All @@ -64,16 +64,9 @@ export default defineConfig({
format: 'es',
preserveModules: true,
preserveModulesRoot: 'src',
chunkFileNames: '[name].mjs',
entryFileNames: '[name].mjs',
chunkFileNames: '[name].js',
entryFileNames: '[name].js',
},
// {
// dir: 'dist',
// format: 'cjs',
// preserveModulesRoot: 'src',
// chunkFileNames: '[name].cjs',
// entryFileNames: '[name].cjs',
// },
],
// make sure to externalize deps that shouldn't be bundled
// into your library
Expand Down

0 comments on commit 7885a7c

Please sign in to comment.