Skip to content

Commit

Permalink
Aug 6, 2024, 12:34 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 6, 2024
1 parent e284db1 commit 0cd6593
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ function addJsExtension(isMjsOutput) {
name: 'add-js-extension',
resolveId(source, importer) {
// Check if the output format is 'es' (for .mjs)
if (isMjsOutput && source.startsWith('@acala-network/sdk/')) {
if (isMjsOutput && source.startsWith('@acala-network/sdk/wallet')) {
return {
id: source + '/index.js',
external: true
};
} else if (isMjsOutput && source.startsWith('@acala-network/sdk/')) {
return {
id: source + '.js',
external: true
Expand Down

0 comments on commit 0cd6593

Please sign in to comment.