Skip to content

Commit

Permalink
note also getDynamicImportFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
alicewriteswrongs committed Dec 9, 2022
1 parent f860a38 commit 0f3d42f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export const hasDependency = (buildCtx: d.BuildCtx, depName: string): boolean =>
return getDependencies(buildCtx).includes(depName);
};

// TODO(STENCIL-661): Remove code related to the dynamic import shim
export const getDynamicImportFunction = (namespace: string) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;

export const readPackageJson = async (config: d.ValidatedConfig, compilerCtx: d.CompilerCtx, buildCtx: d.BuildCtx) => {
Expand Down

0 comments on commit 0f3d42f

Please sign in to comment.