Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Support query (and webpack 2) #28

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

unimonkiez
Copy link

@unimonkiez unimonkiez commented Feb 6, 2017

Hey, first of all thanks for the loader, been serving me for quite some time 👍 .

As of Webpack 2 adding properties to the main config is disallowed. Loaders are required to receive their config via queries. This pull request also solves issue #20 and the non existing issue which is to support webpack 2.

Already tested and works fine on my repo.

Thanks in advance, unimonkiez

README.md Outdated
babel: {
presets: ['es2015', 'stage-0', 'react']
}
},
module: {
preLoaders: [

Choose a reason for hiding this comment

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

preLoaders should be replaced with rules, for an accurate documentation using webpack 2

README.md Outdated
@@ -90,13 +79,23 @@ config.set({
path.resolve('src/components/'),
path.resolve('node_modules/')
],
loader: 'babel'
loader: 'babel',

Choose a reason for hiding this comment

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

should be updated to babel-loader

@rodmax
Copy link

rodmax commented Feb 10, 2017

I just use this pull request in my setup with webpack2... It seems working :)

@unimonkiez
Copy link
Author

@dianadumbravean Fixed README

@deepsweet
Copy link
Owner

there is no need to use isparta anymore, see https://github.com/deepsweet/istanbul-instrumenter-loader.

this one is deprecated and no longer maintained.

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