We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99a08b4 commit 940dc83Copy full SHA for 940dc83
packages/core-base/src/compilation.ts
@@ -60,6 +60,7 @@ export function compile<
60
context: MessageCompilerContext
61
): MessageFunction<Message> {
62
if (
63
+ !__RUNTIME__ &&
64
(__ESM_BROWSER__ ||
65
__NODE_JS__ ||
66
__GLOBAL__ ||
scripts/utils.ts
@@ -56,7 +56,7 @@ export const fuzzyMatchTarget = async (
56
57
export async function checkSizeDistFiles(target: string) {
58
const dirs = await fs.readdir(`${target}/dist`)
59
- return dirs.filter(file => /prod.[cm]js$/.test(file))
+ return dirs.filter(file => /prod.(cjs|js)$/.test(file))
}
export async function readJson(path: string) {
0 commit comments