Switched to `preact-compat`
This commit is contained in:
parent
840e5f41a7
commit
ea01e581cd
13
gulpfile.js
13
gulpfile.js
|
@ -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 = {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue