Skip to content

Commit

Permalink
chore: use module for webpack 4
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Feb 27, 2023
1 parent fb0ddfb commit 40ac903
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 12 deletions.
3 changes: 2 additions & 1 deletion packages/animated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
"version": "9.7.0",
"description": "Animated component props for React",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@react-spring/core",
"version": "9.7.0",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
Expand Down
3 changes: 2 additions & 1 deletion packages/parallax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@react-spring/parallax",
"version": "9.7.0",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
Expand Down
3 changes: 2 additions & 1 deletion packages/rafz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
"version": "9.7.0",
"description": "react-spring's fork of rafz one frameloop to rule them all",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
Expand Down
3 changes: 2 additions & 1 deletion packages/react-spring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "react-spring",
"version": "9.7.0",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
Expand Down
3 changes: 2 additions & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
"version": "9.7.0",
"description": "Globals and shared modules",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
Expand Down
3 changes: 2 additions & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
"version": "9.7.0",
"description": "Internal package with TypeScript stuff",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
Expand Down
3 changes: 2 additions & 1 deletion targets/konva/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@react-spring/konva",
"version": "9.7.0",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
Expand Down
3 changes: 2 additions & 1 deletion targets/native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@react-spring/native",
"version": "9.7.0",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
Expand Down
3 changes: 2 additions & 1 deletion targets/three/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@react-spring/three",
"version": "9.7.0",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
Expand Down
3 changes: 2 additions & 1 deletion targets/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@react-spring/web",
"version": "9.7.0",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
Expand Down
3 changes: 2 additions & 1 deletion targets/zdog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "@react-spring/zdog",
"version": "9.7.0",
"main": "dist/index.js",
"module": "dist/index.mjs",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
Expand Down

0 comments on commit 40ac903

Please sign in to comment.