summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/plugins/cy-ts-preprocessor.js
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/cypress/plugins/cy-ts-preprocessor.js')
-rw-r--r--vid-webpack-master/cypress/plugins/cy-ts-preprocessor.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/vid-webpack-master/cypress/plugins/cy-ts-preprocessor.js b/vid-webpack-master/cypress/plugins/cy-ts-preprocessor.js
new file mode 100644
index 00000000..7f0bba98
--- /dev/null
+++ b/vid-webpack-master/cypress/plugins/cy-ts-preprocessor.js
@@ -0,0 +1,26 @@
+const wp = require('@cypress/webpack-preprocessor')
+
+const webpackOptions = {
+ resolve: {
+ extensions: ['.ts', '.js']
+ },
+ module: {
+ rules: [
+ {
+ test: /\.ts$/,
+ exclude: [/node_modules/],
+ use: [
+ {
+ loader: 'ts-loader'
+ }
+ ]
+ }
+ ]
+ }
+}
+
+const options = {
+ webpackOptions
+}
+
+module.exports = wp(options)