Skip to content

Commit 691ac1c

Browse files
committed
Add ts and tsx for resolving
1 parent 47650f6 commit 691ac1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/app/config/webpack.common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ module.exports = {
290290
mainFields: ['browser', 'module', 'jsnext:main', 'main'],
291291
modules: ['node_modules', 'src', 'standalone-packages'],
292292

293-
extensions: ['.js', '.json'],
293+
extensions: ['.js', '.json', '.ts', '.tsx'],
294294

295295
alias: {
296296
moment: 'moment/moment.js',

packages/app/src/sandbox/eval/npm/fetch-npm-module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const ALIAS_REGEX = /\/\d*\.\d*\.\d*.*?(\/|$)/;
7676
function getUnpkgUrl(name: string, version: string) {
7777
const nameWithoutAlias = name.replace(ALIAS_REGEX, '');
7878

79-
return true // TODO: change to TEMP_USE_JSDELIVR
79+
return TEMP_USE_JSDELIVR // TODO: change to TEMP_USE_JSDELIVR
8080
? `https://cdn.jsdelivr.net/npm/${nameWithoutAlias}@${version}`
8181
: `https://unpkg.com/${nameWithoutAlias}@${version}`;
8282
}

0 commit comments

Comments
 (0)