Skip to content

Commit

Permalink
Don't compile story files and remove emotion sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed May 26, 2022
1 parent 1861294 commit b16e1ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ module.exports = (api) => {
api.cache(true);

return {
sourceMaps: false,
presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript'],
plugins: [
'@babel/plugin-proposal-object-rest-spread',
'@babel/transform-runtime',
[
'@emotion',
{
sourceMap: false,
importMap: {
'@storybook/theming': {
styled: { canonicalImport: ['@emotion/styled', 'default'] },
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"scripts": {
"patch-package": "patch-package",
"build": "yarn build-images && yarn patch-package && babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --ignore \"**/*.test.js\" --ignore \"**/*.stories.js\"",
"build": "yarn build-images && yarn patch-package && babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --ignore \"**/*.stories.tsx\" --ignore \"**/*.stories.js\"",
"build-images": "yarn svgr --out-dir src/images src/images",
"build-storybook": "yarn build-images && yarn patch-package && build-storybook -s .storybook/static",
"clean": "rm -rf dist",
Expand Down

0 comments on commit b16e1ca

Please sign in to comment.