mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
enhance(webpack): add externals for React and ReactDOM
This commit is contained in:
@@ -8,6 +8,11 @@ module.exports = {
|
||||
workers : "./target/workers.js"
|
||||
},
|
||||
|
||||
externals: {
|
||||
'react': 'React',
|
||||
'react-dom': 'ReactDOM',
|
||||
},
|
||||
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'static/js'),
|
||||
filename: '[name]-bundle.js',
|
||||
|
||||
Reference in New Issue
Block a user