Do it differently

This commit is contained in:
Nathan Bierema 2020-07-31 15:32:37 -04:00
parent 7a915e6252
commit 33ec062480
5 changed files with 7 additions and 9 deletions

View File

@ -0,0 +1,4 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-class-properties"]
}

View File

@ -39,6 +39,7 @@
"immutable": "^3.8.1", "immutable": "^3.8.1",
"react": "^16.0.0", "react": "^16.0.0",
"react-base16-styling": "^0.5.3", "react-base16-styling": "^0.5.3",
"react-dom": "^16.0.0" "react-dom": "^16.0.0",
"react-json-tree": "^0.12.0"
} }
} }

View File

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { Map } from 'immutable'; import { Map } from 'immutable';
import JSONTree from '../../src'; import JSONTree from 'react-json-tree';
const getLabelStyle = ({ style }, nodeType, expanded) => ({ const getLabelStyle = ({ style }, nodeType, expanded) => ({
style: { style: {

View File

@ -19,13 +19,6 @@ module.exports = {
plugins: [ plugins: [
new webpack.HotModuleReplacementPlugin(), new webpack.HotModuleReplacementPlugin(),
], ],
resolve: {
alias: {
'react-json-tree/lib': path.join(__dirname, '..', 'src'),
'react-json-tree': path.join(__dirname, '..', 'src')
},
extensions: ['.js']
},
module: { module: {
rules: [ rules: [
{ {