Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Alias moment and react-dom #297

Merged
merged 3 commits into from
May 4, 2017
Merged

Alias moment and react-dom #297

merged 3 commits into from
May 4, 2017

Conversation

Matt-Butler
Copy link
Contributor

@Matt-Butler Matt-Butler commented May 2, 2017

Summary

After adding the alias for moment and react-dom, we can see that only one copy is pulled into our bundle.

Before:
before
After
after

These images were generated using https://github.com/th0r/webpack-bundle-analyzer

Making this update
terra-core.js 5.62 MB
to
terra-core.js 4.61 MB

Thanks for contributing to Terra.
@cerner/terra

@bjankord bjankord mentioned this pull request May 2, 2017
7 tasks
alias: { react: path.resolve(__dirname, 'node_modules', 'react') },
alias: { 'react$': path.resolve(__dirname, 'node_modules', 'react') },
alias: { 'react-dom$': path.resolve(__dirname, 'node_modules', 'react') },
alias: { 'moment$': path.resolve(__dirname, 'node_modules', 'moment') },
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Matt-Butler Matt-Butler changed the title Alias moment and react-dom Alias moment May 2, 2017
@Matt-Butler Matt-Butler force-pushed the alias-webpack branch 2 times, most recently from aae1ec1 to 9213b96 Compare May 2, 2017 21:35
@Matt-Butler Matt-Butler changed the title Alias moment Alias moment and react-dom May 2, 2017
@Matt-Butler Matt-Butler self-assigned this May 3, 2017
@bjankord bjankord merged commit 342079f into master May 4, 2017
@bjankord bjankord deleted the alias-webpack branch May 4, 2017 20:57
cwalten pushed a commit to cwalten/terra-core that referenced this pull request May 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants