diff --git a/apps/remix-ide/.babelrc b/apps/remix-ide/.babelrc index 9123728aa1..34aaeb3268 100644 --- a/apps/remix-ide/.babelrc +++ b/apps/remix-ide/.babelrc @@ -1,5 +1,5 @@ { - "presets": ["@babel/preset-env", ["@babel/preset-react", + "presets": ["@babel/preset-env", ["@nrwl/react/babel", {"runtime": "automatic"} ]], "plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-transform-runtime", "@babel/plugin-proposal-nullish-coalescing-operator"], diff --git a/apps/remix-ide/project.json b/apps/remix-ide/project.json index 7775e520c2..e118e366a7 100644 --- a/apps/remix-ide/project.json +++ b/apps/remix-ide/project.json @@ -48,15 +48,18 @@ "defaultConfiguration": "development", "options": { "buildTarget": "remix-ide:build", - "watch": true, - "liveReload": true, - "hmr": false + }, "configurations": { "development": { "buildTarget": "remix-ide:build:development", "port": 8080 }, + "hot":{ + "buildTarget": "remix-ide:build:development", + "port": 8080, + "hmr": true + }, "production": { "buildTarget": "remix-ide:build:production", "port": 8080 diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index d53d7ed75c..57a5140159 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -247,7 +247,6 @@ class AppComponent { const codeParser = new CodeParser(new AstWalker()) - this.notification = new NotificationPlugin() const configPlugin = new ConfigPlugin() diff --git a/apps/remix-ide/tsconfig.app.json b/apps/remix-ide/tsconfig.app.json index 499c767595..b45165141e 100644 --- a/apps/remix-ide/tsconfig.app.json +++ b/apps/remix-ide/tsconfig.app.json @@ -3,7 +3,6 @@ "compilerOptions": { "outDir": "../../dist/out-tsc", "types": ["node"], - "module": "es2020" }, "exclude": ["**/*.spec.ts", "**/*.spec.tsx", "./src/assets/**/*"], "include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"] diff --git a/babel.config.js b/babel.config.js index ad32f7a9d0..16d8ca5cea 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,5 @@ module.exports = { - "presets": ["@babel/preset-typescript", "@babel/preset-env", "@babel/preset-react"], + "presets": ["@babel/preset-typescript", "@babel/preset-env", "@nrwl/react/babel"], "plugins": [ "babel-plugin-replace-ts-export-assignment", "@babel/plugin-transform-modules-commonjs", diff --git a/libs/remix-core-plugin/package.json b/libs/remix-core-plugin/package.json index 727b1981a8..3ea38618cc 100644 --- a/libs/remix-core-plugin/package.json +++ b/libs/remix-core-plugin/package.json @@ -3,7 +3,6 @@ "version": "0.0.1", "description": "This library was generated with [Nx](https://nx.dev).", "main": "src/index.js", - "type": "module", "author": "Remix Team", "license": "ISC" } diff --git a/libs/remix-core-plugin/tsconfig.lib.json b/libs/remix-core-plugin/tsconfig.lib.json index d1f4736244..87520f83f8 100644 --- a/libs/remix-core-plugin/tsconfig.lib.json +++ b/libs/remix-core-plugin/tsconfig.lib.json @@ -1,11 +1,6 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "module": "commonjs", - "outDir": "../../dist/out-tsc", - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, - "declaration": true, "types": ["node"] }, "exclude": [ diff --git a/libs/remix-ui/home-tab/src/lib/components/homeTabTitle.tsx b/libs/remix-ui/home-tab/src/lib/components/homeTabTitle.tsx index 93808e3e00..e689c9c95d 100644 --- a/libs/remix-ui/home-tab/src/lib/components/homeTabTitle.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/homeTabTitle.tsx @@ -52,7 +52,6 @@ function HomeTabTitle() { return (