Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

feat(infrastructure): default npm entry point to ES5 #108

Merged
merged 4 commits into from
Jun 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 19 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"babel-preset-react": "^6.24.1",
"capture-chrome": "^2.0.0",
"chai": "^4.1.2",
"cp-file": "^5.0.0",
"cp-file": "^6.0.0",
"css-loader": "^0.28.10",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
Expand Down
1 change: 1 addition & 0 deletions packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.2.0",
"description": "Material Components React Button",
"license": "Apache-2.0",
"main": "dist/index.js",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better as another pr: if you still want an esm build like Dan mentioned, you could run Babel with ["env", { "modules": false" }] into a new dist type folder and add the module field like with main so it just doesn't touch the import/exports.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hzoo I just pushed some changes that doesn't touch the import/exports by adding the {modules: false} options. I think its working correctly as I'm now seeing lines like this:

/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);```

"keywords": [
"mdc web react",
"material components react",
Expand Down
1 change: 1 addition & 0 deletions packages/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.2.0",
"description": "Material Components React Card",
"license": "Apache-2.0",
"main": "dist/index.js",
"keywords": [
"mdc web react",
"material components react",
Expand Down
1 change: 1 addition & 0 deletions packages/fab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.2.0",
"description": "Material Components React Floating Action Button (FAB)",
"license": "Apache-2.0",
"main": "dist/index.js",
"keywords": [
"mdc web react",
"material components react",
Expand Down
1 change: 1 addition & 0 deletions packages/floating-label/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.2.0",
"description": "Material Components React Floating Label",
"license": "Apache-2.0",
"main": "dist/index.js",
"keywords": [
"mdc web react",
"material components react",
Expand Down
1 change: 1 addition & 0 deletions packages/line-ripple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.2.0",
"description": "Material Components React Line Ripple",
"license": "Apache-2.0",
"main": "dist/index.js",
"keywords": [
"mdc web react",
"material components react",
Expand Down
1 change: 1 addition & 0 deletions packages/material-icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.2.0",
"description": "Material Components React Material Icon",
"license": "Apache-2.0",
"main": "dist/index.js",
"keywords": [
"mdc web react",
"material components react",
Expand Down
1 change: 1 addition & 0 deletions packages/notched-outline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.2.0",
"description": "Material Componens React Notched Outline",
"license": "Apache-2.0",
"main": "dist/index.js",
"keywords": [
"mdc web react",
"material components react",
Expand Down
1 change: 1 addition & 0 deletions packages/ripple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.2.0",
"description": "Material Components React Ripple",
"license": "Apache-2.0",
"main": "dist/index.js",
"keywords": [
"mdc web react",
"material components react",
Expand Down
1 change: 1 addition & 0 deletions packages/text-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.2.0",
"description": "Material Components React Text Field",
"license": "Apache-2.0",
"main": "dist/index.js",
"keywords": [
"mdc web react",
"material components react",
Expand Down
1 change: 1 addition & 0 deletions packages/top-app-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.2.0",
"description": "Material Components React Top App Bar",
"license": "Apache-2.0",
"main": "dist/index.js",
"keywords": [
"mdc web react",
"material components react",
Expand Down
Loading