Skip to content

Commit eb1ee36

Browse files
committed
Drop examples package-lock.json
1 parent 64c6b76 commit eb1ee36

File tree

19 files changed

+41
-23968
lines changed

19 files changed

+41
-23968
lines changed

Diff for: .gitignore

+12-9
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,26 @@ target/
6565
# Editors and IDEs
6666
.ropeproject/
6767

68+
# PyCharm IDE
69+
.idea
70+
.vscode
71+
72+
# pyenv
6873
.python-version
6974

75+
# General
76+
.direnv
77+
.envrc
78+
.tool-versions
79+
80+
# Project-specific
7081
examples/**/ve/
7182
examples/**/venv/
7283
examples/**/node_modules/
7384
examples/**/assets/bundles/
7485
examples/**/assets/webpack_bundles/
7586
examples/**/webpack-stats.json
87+
examples/**/package-lock.json
7688

7789
tests/ve/
7890
tests/ve3/
@@ -85,12 +97,3 @@ tests/assets/django_webpack_loader_bundles/
8597
tests/webpack-stats.json
8698
tests/webpack-stats-app2.json
8799
tests/webpack-stats-getFiles.json
88-
89-
# PyCharm IDE
90-
.idea
91-
.vscode
92-
93-
# General
94-
.direnv
95-
.envrc
96-
.tool-versions

Diff for: examples/code-splitting/.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

Diff for: examples/code-splitting/assets/js/index.jsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import { createRoot } from 'react-dom/client';
33

44
import App from './app';
55

6-
ReactDOM.render(<App/>, document.getElementById('react-app'));
6+
const container = document.getElementById('react-app');
7+
const root = createRoot(container);
8+
root.render(<App/>);

0 commit comments

Comments
 (0)