Expected Behavior
typeorm be packed into bundle
Actual Behavior
typeorm cannot be resolved:
(!) Plugin node-resolve: Could not resolve import "typeorm" in /Users/syra_ti/Documents/projects/gensou-studio/rollup-with-typeorm/src/entities/subscription.ts using exports defined in /Users/syra_ti/Documents/projects/gensou-studio/rollup-with-typeorm/node_modules/typeorm/package.json.
(!) Plugin node-resolve: Could not resolve import "typeorm" in /Users/syra_ti/Documents/projects/gensou-studio/rollup-with-typeorm/src/datasource.ts using exports defined in /Users/syra_ti/Documents/projects/gensou-studio/rollup-with-typeorm/node_modules/typeorm/package.json.
(!) Unresolved dependencies
https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
typeorm (imported by "src/entities/subscription.ts" and "src/datasource.ts")
Additional Information
I guess the problem is about "exports" field resolving in typeorm/package.json.
I've read some related issue&pr below:
#1548
#1549
and tried allowExportsFolderMapping option but not working.
git clone & npm run buildExpected Behavior
typeorm be packed into bundle
Actual Behavior
typeorm cannot be resolved:
Additional Information
I guess the problem is about "exports" field resolving in typeorm/package.json.
I've read some related issue&pr below:
#1548
#1549
and tried
allowExportsFolderMappingoption but not working.