-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
now package is ESM only BREAKING CHANGE: no commonjs support
- Loading branch information
Showing
15 changed files
with
3,189 additions
and
3,775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ node_modules | |
# builds | ||
package | ||
dist | ||
storybook-static | ||
|
||
# misc | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
const path = require('path'); | ||
const { mergeConfig } = require('vite'); | ||
|
||
module.exports = { | ||
core: { | ||
builder: '@storybook/builder-vite', | ||
}, | ||
viteFinal(config) { | ||
return mergeConfig(config, { | ||
resolve: { | ||
alias: { | ||
'react-chartjs-2': path.resolve(__dirname, '../src'), | ||
}, | ||
}, | ||
}); | ||
}, | ||
stories: ['../stories/*.tsx'], | ||
addons: [ | ||
'@storybook/addon-docs', | ||
'@storybook/addon-controls', | ||
'@storybook/addon-actions', | ||
], | ||
webpackFinal(config) { | ||
config.resolve.alias['react-chartjs-2'] = path.resolve(__dirname, '../src'); | ||
return config; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"type": "commonjs" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.