Skip to content

Commit

Permalink
Update package.json: changed pattern "./" to "./*" (#135)
Browse files Browse the repository at this point in the history
* Update package.json: changed pattern "./" to "./*"

On Angular when executes command 'ng build --prod': 
- Generating browser application bundles...(node:16716) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at {{APP_PATH}}\node_modules\tslib\package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)

* Use both export map syntaxes to support older NodeJS

Co-authored-by: ExE Boss <[email protected]>

Co-authored-by: Ron Buckton <[email protected]>
Co-authored-by: ExE Boss <[email protected]>
  • Loading branch information
3 people authored Feb 8, 2022
1 parent 7012efc commit 06853a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"import": "./modules/index.js",
"default": "./tslib.js"
},
"./*": "./*",
"./": "./"
}
}

0 comments on commit 06853a8

Please sign in to comment.