mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-09 17:19:59 +00:00
Switch to preact
This commit is contained in:
@@ -23,17 +23,6 @@ module.exports = (env) => ({
|
||||
filename: "[name].js"
|
||||
, path: `${env.outputPath}`
|
||||
}
|
||||
, optimization: {
|
||||
splitChunks: {
|
||||
cacheGroups: {
|
||||
vendor: {
|
||||
name: "vendor"
|
||||
, test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/
|
||||
, chunks: "all"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
, plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
"EXTENSION_NAME" : JSON.stringify(env.extensionName)
|
||||
@@ -86,4 +75,10 @@ module.exports = (env) => ({
|
||||
}
|
||||
]
|
||||
}
|
||||
, resolve: {
|
||||
alias: {
|
||||
"react": "preact-compat"
|
||||
, "react-dom": "preact-compat"
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user