refactor(examples): add react webpack alias
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
webpack: {
|
||||
alias: {
|
||||
react: path.resolve(__dirname, '..', 'node_modules', 'react'),
|
||||
},
|
||||
},
|
||||
};
|
||||
Generated
+28495
-11829
File diff suppressed because it is too large
Load Diff
@@ -3,15 +3,16 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"react-dom": "^16.13.1",
|
||||
"react-flow-renderer": "file:../",
|
||||
"@craco/craco": "^5.7.0",
|
||||
"react-dom": "^16.14.0",
|
||||
"react-flow-renderer": "file:..",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"react-scripts": "3.4.3"
|
||||
"react-scripts": "^3.4.4"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"start": "craco start",
|
||||
"build": "craco build",
|
||||
"test": "craco test",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
||||
Reference in New Issue
Block a user