Skip to content

Commit 871be4a

Browse files
committed
chore: update build and code deps
1 parent 7b97a2e commit 871be4a

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [1.0.7](https://github.com/devme/react-qr-code/compare/v1.0.6...v1.0.7) (2022-12-28)
6+
- Simplify build process
7+
- Move the bundle umd only
8+
- Update dependencies
9+
510
### [1.0.6](https://github.com/devme/react-qr-code/compare/v1.0.5...v1.0.6) (2022-01-09)
611
- Remove qr.js as dependency
712
- Migrate qr.js to local typescript implementation

examples/app.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,6 @@ function App() {
4242
}
4343

4444

45-
ReactDOM.render((<App/>), document.getElementById('root'))
45+
const container = document.getElementById('root')
46+
const root = ReactDOM.createRoot(container);
47+
root.render(<App tab="home" />);

rollup.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export default {
1010
output: {
1111
sourcemap: true,
1212
dir: 'dist',
13-
name: 'react-qr-code',
14-
format: 'cjs',
13+
name: 'ReactQrCode',
14+
format: 'umd',
1515
exports: 'named',
1616
},
1717
plugins: [

tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
"stripInternal": true,
1818
"declaration": true,
1919
"declarationMap": true,
20-
"declarationDir": "dist/types",
21-
"outDir": "dist/esm5",
20+
"declarationDir": "./dist",
21+
"outDir": "dist",
2222
"resolveJsonModule": true,
23-
"importHelpers": true
23+
"importHelpers": true,
24+
"rootDir": "./src"
2425
},
2526
"include": [
2627
"./src"

0 commit comments

Comments
 (0)