Generator: Fixed JS and TS files loading order

pull/5928/head
Laurent Cozic 2021-12-27 17:39:27 +01:00
parent 960863fb75
commit d0b969372d
1 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ const pluginConfig = Object.assign({}, baseConfig, {
},
// JSON files can also be required from scripts so we include this.
// https://github.com/joplin/plugin-bibtex/pull/2
extensions: ['.tsx', '.ts', '.js', '.json'],
extensions: ['.js', '.tsx', '.ts', '.json'],
},
output: {
filename: 'index.js',
@ -169,7 +169,7 @@ const extraScriptConfig = Object.assign({}, baseConfig, {
alias: {
api: path.resolve(__dirname, 'api'),
},
extensions: ['.tsx', '.ts', '.js', '.json'],
extensions: ['.js', '.tsx', '.ts', '.json'],
},
});