Skip to content

Commit

Permalink
Update dependency react to v16.13.0 (#3)
Browse files Browse the repository at this point in the history
* Update dependency react to v16.13.0

* Fixing build

* Update README.md

Co-authored-by: WhiteSource Renovate <[email protected]>
Co-authored-by: Joel Denning <[email protected]>
  • Loading branch information
3 people authored Mar 3, 2020
1 parent 4cbe731 commit 72a91a0
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 29 deletions.
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": ["<node_internals>/**"],
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "build"]
}
]
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# react

[![npm version](https://img.shields.io/npm/v/@esm-bundle/react.svg?style=flat)](https://www.npmjs.com/package/@esm-bundle/react) [![build status](https://travis-ci.com/esm-bundle/react.svg?branch=master)](https://travis-ci.com/esm-bundle/react) [![](https://data.jsdelivr.com/v1/package/npm/@esm-bundle/react/badge)](https://www.jsdelivr.com/package/npm/@esm-bundle/react)

An ESM version of React.
Expand Down
24 changes: 16 additions & 8 deletions browser-test/test.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
describe("@esm-bundle/react", () => {
it("can load the ESM development bundle", () => {
return import("/base/esm/react.development.js");
it("can load the ESM development bundle", async () => {
const React = await import("/base/esm/react.development.js");
React.default.createElement("button");
React.createElement("button");
});

it("can load the ESM production bundle", () => {
return import("/base/esm/react.production.min.js");
it("can load the ESM production bundle", async () => {
const React = await import("/base/esm/react.development.js");
React.default.createElement("button");
React.createElement("button");
});

it("can load the System.register development bundle", () => {
return System.import("/base/system/react.development.js");
it("can load the System.register development bundle", async () => {
const React = await System.import("/base/system/react.development.js");
React.default.createElement("button");
React.createElement("button");
});

it("can load the System.register production bundle", () => {
return System.import("/base/system/react.production.min.js");
it("can load the System.register production bundle", async () => {
const React = await System.import("/base/system/react.development.js");
React.default.createElement("div");
React.createElement("div");
});
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"prettier": "1.19.1",
"pretty-quick": "2.0.1",
"prop-types": "15.7.2",
"react": "16.12.0",
"react": "16.13.0",
"release-it": "12.4.3",
"release-it-plugin-esm-bundle": "2.0.0",
"rimraf": "3.0.0",
Expand Down
22 changes: 6 additions & 16 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@ function createDevConfig(format) {
format,
file: `${dir}/react.development.js`,
sourcemap: true,
banner: `/* react@${DevReact.version} development version */`
banner: `/* react@${DevReact.version} development version */`,
exports: "named"
},
plugins: [
commonjs({
namedExports: {
[require.resolve("react/cjs/react.development.js")]: Object.keys(
DevReact
)
}
}),
commonjs(),
resolve(),
replace({
values: {
Expand All @@ -42,16 +37,11 @@ function createProdConfig(format) {
format,
file: `${format}/react.production.min.js`,
sourcemap: true,
banner: `/* react@${ProdReact.version} production version */`
banner: `/* react@${ProdReact.version} production version */`,
exports: "named"
},
plugins: [
commonjs({
namedExports: {
[require.resolve("react/cjs/react.production.min.js")]: Object.keys(
ProdReact
)
}
}),
commonjs(),
resolve(),
replace({
values: {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4499,10 +4499,10 @@ react-is@^16.12.0, react-is@^16.8.1:
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.12.0.tgz#2cc0fe0fba742d97fd527c42a13bec4eeb06241c"
integrity sha512-rPCkf/mWBtKc97aLL9/txD8DZdemK0vkA3JMLShjlJB3Pj3s+lpf1KaBzMfQrAmhMQB0n1cU/SUGgKKBCe837Q==

react@16.12.0:
version "16.12.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.12.0.tgz#0c0a9c6a142429e3614834d5a778e18aa78a0b83"
integrity sha512-fglqy3k5E+81pA8s+7K0/T3DBCF0ZDOher1elBFzF7O6arXJgzyu/FW+COxFvAWXJoJN9KIZbT2LXlukwphYTA==
react@16.13.0:
version "16.13.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.13.0.tgz#d046eabcdf64e457bbeed1e792e235e1b9934cf7"
integrity sha512-TSavZz2iSLkq5/oiE7gnFzmURKZMltmi193rm5HEoUDAXpzT9Kzw6oNZnGoai/4+fUnm7FqS5dwgUL34TujcWQ==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
Expand Down

0 comments on commit 72a91a0

Please sign in to comment.