Skip to content

Commit

Permalink
[Fix] Temporarily hack main entry, so it's compatible with other reso…
Browse files Browse the repository at this point in the history
…lvers

This package can't be included right now with webpack (Jest also has a similar issue).

While it's a bug in webpack, this package is not usable by any web app right now that bundles with webpack.
webpack/enhanced-resolve#123

By switching the "main" entry in package.json, this package will be compatible with all resolvers

From es-shims/Array.prototype.flat#3
  • Loading branch information
ljharb committed Feb 24, 2018
1 parent 82aefc6 commit 8ccc685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"description": "An ESnext spec-compliant `Array.prototype.flatMap` shim/polyfill/replacement that works as far down as ES3.",
"license": "MIT",
"main": "./",
"main": "index",
"scripts": {
"prepublish": "safe-publish-latest",
"pretest": "npm run --silent lint && evalmd README.md",
Expand Down

0 comments on commit 8ccc685

Please sign in to comment.