diff --git a/packages/grafana-e2e/cypress/plugins/typescriptPreprocessor.js b/packages/grafana-e2e/cypress/plugins/typescriptPreprocessor.js index da12a823396..352b660a1a0 100644 --- a/packages/grafana-e2e/cypress/plugins/typescriptPreprocessor.js +++ b/packages/grafana-e2e/cypress/plugins/typescriptPreprocessor.js @@ -1,23 +1,13 @@ -const { resolve } = require('path'); const wp = require('@cypress/webpack-preprocessor'); -const packageRoot = resolve(`${__dirname}/../../`); -const packageModules = `${packageRoot}/node_modules`; - const webpackOptions = { module: { rules: [ { - include: modulePath => { - return modulePath.startsWith(packageRoot) && !modulePath.startsWith(packageModules); - }, test: /\.ts$/, use: [ { loader: 'ts-loader', - options: { - configFile: `${__dirname}/../tsconfig.json`, - }, }, ], }, diff --git a/packages/grafana-e2e/cypress/tsconfig.json b/packages/grafana-e2e/cypress/tsconfig.json index 41a42f4f422..c5d0b72aed0 100644 --- a/packages/grafana-e2e/cypress/tsconfig.json +++ b/packages/grafana-e2e/cypress/tsconfig.json @@ -1,8 +1,7 @@ { "compilerOptions": { - "module": "commonjs", "types": ["cypress"] }, - "extends": "@grafana/tsconfig", + "extends": "../tsconfig.json", "include": ["**/*.ts"] }