Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

chore: Explicitly reference index.js under MDC packages #211

Merged
merged 1 commit into from
Oct 1, 2018

Conversation

kfranqueiro
Copy link
Contributor

Currently we have a mix of MDC imports that explicitly reference index, explicitly reference dist/mdc.*.js, and others that just import the package root.

This PR updates so that everything references index, since I already configured our toolchain to process MDC's code through babel back in #43. It saves roughly 17KB in the minified/gzipped JS produced by the build on master, and will save more in future releases when considering that material-components/material-components-web#3245 will change the behavior of package-root imports.

Copy link

@moog16 moog16 left a comment

Choose a reason for hiding this comment

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

LGTM! Ran catalog with script and worked for me.

@kfranqueiro kfranqueiro merged commit 7496dc5 into master Oct 1, 2018
@kfranqueiro kfranqueiro deleted the import-index branch October 1, 2018 21:40
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.

2 participants