Skip to content

Commit

Permalink
make sure that the prompts package is correctly externalized
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewriteswrongs committed Oct 17, 2023
1 parent 076ebc3 commit 506fd39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/esbuild/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ export function getEsbuildAliases(opts: BuildOptions): Record<string, string> {
'@stencil/core/dev-server': './dev-server/index.js',
'@stencil/core/mock-doc': './mock-doc/index.cjs',
'@stencil/core/internal/testing': './internal/testing/index.js',

// mapping node.js module names to `sys/node` "cache"
//
// these allow us to bundle and ship a dependency (like `prompts`) as part
// of the Stencil distributable but also have our separate bundles
// reference the same file
'prompts': './sys/node/prompts.js'
};
}

Expand Down

0 comments on commit 506fd39

Please sign in to comment.