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 <3889017+ExE-Boss@users.noreply.github.com>

Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
  • Loading branch information
3 people committed 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
Expand Up @@ -32,6 +32,7 @@
"import": "./modules/index.js",
"default": "./tslib.js"
},
"./*": "./*",
"./": "./"
}
}

0 comments on commit 06853a8

Please sign in to comment.