GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Only use Rollup's CommonJS plugin for "react-art" (#18186) · react/react@8ccfce4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • jest-react
      • package.json
    • react-debug-tools
      • package.json
  • scripts/rollup
    • build.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/jest-react/package.json‎

Copy file name to clipboardExpand all lines: packages/jest-react/package.json
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"react": "^16.0.0",
2424
"react-test-renderer": "^16.0.0"
2525
},
26+
"dependencies": {
27+
"object-assign": "^4.1.1"
28+
},
2629
"files": [
2730
"LICENSE",
2831
"README.md",
Collapse file

‎packages/react-debug-tools/package.json‎

Copy file name to clipboardExpand all lines: packages/react-debug-tools/package.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"react": "^16.0.0"
3030
},
3131
"dependencies": {
32-
"error-stack-parser": "^2.0.2"
32+
"error-stack-parser": "^2.0.2",
33+
"object-assign": "^4.1.1"
3334
}
3435
}
Collapse file

‎scripts/rollup/build.js‎

Copy file name to clipboardExpand all lines: scripts/rollup/build.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,10 @@ function getPlugins(
392392
'process.env.NODE_ENV': isProduction ? "'production'" : "'development'",
393393
__EXPERIMENTAL__,
394394
}),
395-
// We still need CommonJS for external deps like object-assign.
396-
commonjs(),
395+
// The CommonJS plugin *only* exists to pull "art" into "react-art".
396+
// I'm going to port "art" to ES modules to avoid this problem.
397+
// Please don't enable this for anything else!
398+
isUMDBundle && entry === 'react-art' && commonjs(),
397399
// Apply dead code elimination and/or minification.
398400
isProduction &&
399401
closure(

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.