Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
basilgood committed Aug 16, 2024
1 parent c55bdbb commit 2a0fbf6
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import rollupCommonjs from '@rollup/plugin-commonjs';
import esbuild from 'rollup-plugin-esbuild';

/** @type { import('@web/storybook-framework-web-components').StorybookConfig } */
Expand All @@ -10,10 +11,14 @@ const config = {
docs: {
autodocs: true,
},
core: {
disableTelemetry: true,
},
/* Try to make the build parse TS files */
async rollupFinal(config) {
// add extra configuration for rollup
// e.g. a new plugin
config.plugins.push(rollupCommonjs({}));
config.plugins.push(esbuild({}));

return config;
Expand Down
81 changes: 81 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"@commitlint/config-conventional": "^19.2.2",
"@neovici/cfg": "^1.54.1",
"@open-wc/testing": "^4.0.0",
"@rollup/plugin-commonjs": "^26.0.1",
"@semantic-release/changelog": "^6.0.0",
"@semantic-release/git": "^10.0.0",
"@storybook/addon-essentials": "^7.6.19",
Expand All @@ -83,12 +84,12 @@
"@types/node": "^20.12.13",
"@web/storybook-builder": "^0.1.16",
"@web/storybook-framework-web-components": "^0.1.2",
"storybook": "^7.6.19",
"esbuild": "^0.21.4",
"http-server": "^14.1.1",
"rollup-plugin-esbuild": "^6.1.1",
"husky": "^9.0.11",
"rollup-plugin-esbuild": "^6.1.1",
"semantic-release": "^24.0.0",
"sinon": "^18.0.0"
"sinon": "^18.0.0",
"storybook": "^7.6.19"
}
}

0 comments on commit 2a0fbf6

Please sign in to comment.