-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use parcel v2 bundler instead of webpack (#880)
* Use parcel v2 bundler instead of webpack Switches the bundler, jest, and storybook to all use swc/swc-loader instead of babel. Comparisons: | Bundler | Speed | index.js module size | | ----------------- | ----- | -------------------- | | Babel / Webpack 5 | 40s | 1.01MB | | SWC / Parcel v2 | 20s | 734KB | * Update package.json#scripts
- Loading branch information
Showing
17 changed files
with
33,247 additions
and
33,806 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
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,10 @@ | ||
{ | ||
"/graphql": { | ||
"target": "https://vaken-staging.herokuapp.com/", | ||
"changeOrigin": true | ||
}, | ||
"/api": { | ||
"target": "https://vaken-staging.herokuapp.com/", | ||
"changeOrigin": true | ||
} | ||
} |
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,4 +1,14 @@ | ||
module.exports = { | ||
core: { | ||
builder: 'webpack5', | ||
}, | ||
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], | ||
addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-actions'], | ||
addons: [ | ||
'@storybook/addon-a11y', | ||
'@storybook/addon-actions', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-links', | ||
'@storybook/addon-storyshots', | ||
'storybook-addon-swc', | ||
], | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript", | ||
"tsx": true | ||
} | ||
} | ||
} |
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.