
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
package.json `exports` field not working with TypeScript
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
package.json `exports` field not working with TypeScript
The version 13.2 of Node.js allows ESM modules and a new package.json field, called exports, to s... The version 13.2 of Node.js allows ESM modules and a new package.json field, called exports, to select and rewrite exported files. Before 13.2, I was importing files from the dist folder of my library with: import myfile from 'mylibrary/dist/myfile' With 13.2, I added this to my package.json: exports: { "./": "./dist/" } And tried to import files with: import myfile from 'mylibrary/myfile' But Typ