mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-25 16:40:03 -05:00
25 lines
631 B
TypeScript
25 lines
631 B
TypeScript
export default {
|
|
mode: 'development',
|
|
devtool: 'inline-source-map',
|
|
entry: './app.ts',
|
|
output: {
|
|
filename: 'bundle.js',
|
|
},
|
|
resolve: {
|
|
// Add `.ts` and `.tsx` as a resolvable extension.
|
|
extensions: ['.ts', '.tsx', '.js'],
|
|
// Add support for TypeScripts fully qualified ESM imports.
|
|
extensionAlias: {
|
|
'.js': ['.js', '.ts'],
|
|
'.cjs': ['.cjs', '.cts'],
|
|
'.mjs': ['.mjs', '.mts'],
|
|
},
|
|
},
|
|
module: {
|
|
rules: [
|
|
// all files with a `.ts`, `.cts`, `.mts` or `.tsx` extension will be handled by `ts-loader`
|
|
{ test: /\.([cm]?ts|tsx)$/, loader: 'ts-loader' },
|
|
],
|
|
},
|
|
}
|