From d976136c1e3b97560b469e45e73c268c235b5b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudak?= Date: Fri, 18 Oct 2024 09:17:18 +0200 Subject: [PATCH] Add extensions to imports --- babel.config.js | 1 + package.json | 1 + pnpm-lock.yaml | 14 +++++++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/babel.config.js b/babel.config.js index 600a3b4d3..439471095 100644 --- a/babel.config.js +++ b/babel.config.js @@ -68,6 +68,7 @@ module.exports = function getBabelConfig(api) { mode: 'unsafe-wrap', }, ], + 'babel-plugin-add-import-extension', ]; if (process.env.NODE_ENV === 'production') { diff --git a/package.json b/package.json index cb382a4d9..0946e2bd7 100644 --- a/package.json +++ b/package.json @@ -94,6 +94,7 @@ "@typescript-eslint/eslint-plugin": "^7.8.0", "@typescript-eslint/parser": "^7.8.0", "babel-loader": "^9.2.1", + "babel-plugin-add-import-extension": "^1.6.0", "babel-plugin-istanbul": "^6.1.1", "babel-plugin-macros": "^3.1.0", "babel-plugin-module-resolver": "^5.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 10b07a828..791b00bb2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -109,6 +109,9 @@ importers: babel-loader: specifier: ^9.2.1 version: 9.2.1(@babel/core@7.25.2)(webpack@5.94.0(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.94.0))) + babel-plugin-add-import-extension: + specifier: ^1.6.0 + version: 1.6.0(@babel/core@7.25.2) babel-plugin-istanbul: specifier: ^6.1.1 version: 6.1.1 @@ -3287,6 +3290,11 @@ packages: '@babel/core': ^7.25.2 webpack: '>=5' + babel-plugin-add-import-extension@1.6.0: + resolution: {integrity: sha512-JVSQPMzNzN/S4wPRoKQ7+u8PlkV//BPUMnfWVbr63zcE+6yHdU2Mblz10Vf7qe+6Rmu4svF5jG7JxdcPi9VvKg==} + peerDependencies: + '@babel/core': ^7.25.2 + babel-plugin-istanbul@6.1.1: resolution: {integrity: sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==} engines: {node: '>=8'} @@ -7247,7 +7255,6 @@ packages: engines: {node: '>=0.6.0', teleport: '>=0.2.0'} deprecated: |- You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. - (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) qjobs@1.2.0: @@ -11904,6 +11911,11 @@ snapshots: schema-utils: 4.2.0 webpack: 5.94.0(webpack-cli@5.1.4(webpack-bundle-analyzer@4.10.2)(webpack@5.94.0)) + babel-plugin-add-import-extension@1.6.0(@babel/core@7.25.2): + dependencies: + '@babel/core': 7.25.2 + '@babel/helper-plugin-utils': 7.25.7 + babel-plugin-istanbul@6.1.1: dependencies: '@babel/helper-plugin-utils': 7.25.7