8000 Support new webpack features and internalize CSS functions. by izaakschroeder · Pull Request #17 · bootstarted/css-js-loader · GitHub
[go: up one dir, main page]

Skip to content

Support new webpack features and internalize CSS functions. #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2017

Conversation

izaakschroeder
Copy link
Contributor

Support for value-loader has been added by checking to see if the source is an object instead of a string – this allows for a bunch of nice things (caching, support for modules: false in babel, nested dependency resolution, etc.) because value-loader spawns a child compiler that runs the full webpack process.

We also update several packages here (lint, etc.) because why not.

The internal react functions have been moved into the repo to remove the react dependency. This means you won't pull two versions of react into your project and get weird peer dependency warnings.

@izaakschroeder izaakschroeder requested a review from 10xjs October 20, 2017 00:46
README.md Outdated
}],
},
};
```

NOTE: You don't need to chain with [value-loader] per-se, but doing so gives you caching, nested dependency monitoring/reloading and the ability to use webpack's module rollup.
Copy link
Contributor

Choose a reason for hiding this comment

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

I haven't heard of webpack using "rollup" to describe this this feature. Stick with "tree shaking" or "unused module export detection" instead.

Support for `value-loader` has been added by checking to see if the source is an object instead of a string – this allows for a bunch of nice things (caching, support for `modules: false` in babel, nested dependency resolution, etc.) because `value-loader` spawns a child compiler that runs the full webpack process.

We also update several packages here (lint, etc.) because why not.

The internal react functions have been moved into the repo to remove the react dependency. This means you won't pull two versions of react into your project and get weird peer dependency warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0