mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
add TypeScript and JSX extensions to Rspack config resolve
This commit is contained in:
@@ -173,7 +173,7 @@ export default function (inMeteor = {}, argv = {}) {
|
||||
: []),
|
||||
],
|
||||
},
|
||||
resolve: { extensions: ['.js', '.jsx', '.json'] },
|
||||
resolve: { extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'] },
|
||||
externals: [/^(meteor.*|react$|react-dom$)/],
|
||||
plugins: [
|
||||
...(isRun
|
||||
@@ -244,7 +244,7 @@ export default function (inMeteor = {}, argv = {}) {
|
||||
rules: [swcConfig],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.js', '.jsx', '.json'],
|
||||
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
|
||||
modules: ['node_modules', path.resolve(process.cwd())],
|
||||
conditionNames: ['import', 'require', 'node', 'default'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user