Switched to `preact-compat`

This commit is contained in:
jos 2017-01-06 23:17:09 +01:00
parent 840e5f41a7
commit ea01e581cd
2 changed files with 13 additions and 5 deletions

View File

@ -63,6 +63,13 @@ const loaders = [
{ test: /\.svg$/, loader: 'svg-url-loader' }
]
const resolve = {
'alias': {
'react': 'preact-compat',
'react-dom': 'preact-compat'
}
}
// create a single instance of the compiler to allow caching
const compiler = webpack({
entry: ENTRY,
@ -81,7 +88,8 @@ const compiler = webpack({
: [bannerPlugin, productionEnvPlugin, minifyPlugin],
module: {
loaders
}
},
resolve
})
// create a single instance of the compiler to allow caching
@ -105,7 +113,8 @@ const compilerMinimalist = webpack({
],
module: {
loaders
}
},
resolve
})
const externals = {

View File

@ -29,9 +29,8 @@
"brace": "0.9.1",
"javascript-natural-sort": "0.7.1",
"lodash": "4.17.4",
"react": "15.4.1",
"react-dom": "15.4.1",
"react-scroll": "1.4.4"
"preact": "7.1.0",
"preact-compat": "3.9.4"
},
"devDependencies": {
"ava": "0.17.0",