diff --git a/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/package.json b/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/package.json index 83934a294..0f3ca2db4 100644 --- a/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/package.json +++ b/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/package.json @@ -7,14 +7,9 @@ "watch": "cross-env webpack --watch --mode=development --env configuration=Debug" }, "devDependencies": { - "@babel/core": "^7.14.0", - "@babel/preset-env": "^7.14.1", - "babel-loader": "^8.2.2", "copy-webpack-plugin": "^8.1.1", "cross-env": "^7.0.3", "monaco-editor": "^0.23.0", - "ts-loader": "^9.1.2", - "typescript": "^4.2.4", "webpack": "^5.36.2", "webpack-cli": "^4.7.0" } diff --git a/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/tsconfig.json b/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/tsconfig.json deleted file mode 100644 index 18e162c99..000000000 --- a/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/tsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compilerOptions": { - "allowSyntheticDefaultImports": true, - "allowUnreachableCode": true, - "allowUnusedLabels": true, - "declaration": false, - "experimentalDecorators": true, - "lib": [ - "dom", - "es2019" - ], - "moduleResolution": "node", - "module": "esnext", - "target": "ES2019", - "noUnusedLocals": false, - "noUnusedParameters": false, - "jsx": "react", - "jsxFactory": "h" - } -} \ No newline at end of file diff --git a/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/webpack.config.js b/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/webpack.config.js index 4a40c1750..a6da8711e 100644 --- a/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/webpack.config.js +++ b/src/designer/bindings/aspnet/Elsa.Designer.Components.Web/webpack.config.js @@ -6,21 +6,8 @@ module.exports = env => { return { entry: ['./index.js'], devtool: env && env.production ? 'none' : 'source-map', - module: { - rules: [ - { - test: /\.(ts|tsx)$/, - use: 'ts-loader', - exclude: /node_modules/, - }, - { - test: /\.(js|jsx)$/, - exclude: /node_modules/, - }, - ], - }, resolve: { - extensions: ['.tsx', '.ts', '.js', '.jsx'], + extensions: ['.js'], }, experiments: { outputModule: true diff --git a/src/scripting/Elsa.Scripting.JavaScript/Handlers/DateTimeScriptEngineConfigurator.cs b/src/scripting/Elsa.Scripting.JavaScript/Handlers/ConfigureJavaScriptEngineWithDateTimeFeatures.cs similarity index 94% rename from src/scripting/Elsa.Scripting.JavaScript/Handlers/DateTimeScriptEngineConfigurator.cs rename to src/scripting/Elsa.Scripting.JavaScript/Handlers/ConfigureJavaScriptEngineWithDateTimeFeatures.cs index 6d15fbdff..2aaa0409c 100644 --- a/src/scripting/Elsa.Scripting.JavaScript/Handlers/DateTimeScriptEngineConfigurator.cs +++ b/src/scripting/Elsa.Scripting.JavaScript/Handlers/ConfigureJavaScriptEngineWithDateTimeFeatures.cs @@ -8,11 +8,11 @@ using NodaTime; namespace Elsa.Scripting.JavaScript.Handlers { - public class DateTimeScriptEngineConfigurator : INotificationHandler + public class ConfigureJavaScriptEngineWithDateTimeFeatures : INotificationHandler { private readonly IClock _clock; - public DateTimeScriptEngineConfigurator(IClock clock) + public ConfigureJavaScriptEngineWithDateTimeFeatures(IClock clock) { _clock = clock; }