Skip to content

Commit 3bd4782

Browse files
committed
fix
1 parent 1a7ef56 commit 3bd4782

5 files changed

+14359
-9
lines changed

index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import 'ember-source/types/stable'

lib/hbs-imports-babel-plugin.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import ImportProcessor from './import-processor';
22
import p from 'path';
33
import type * as BabelCoreNamespace from '@babel/core';
44
import type * as BabelTypesNamespace from '@babel/types';
5-
import type { NodePath } from '@babel/traverse';
65
import { PluginObj } from '@babel/core';
76
import { V8IntrinsicIdentifier } from '@babel/types';
87

@@ -39,7 +38,7 @@ module.exports = function hbsImports({ types: t }: { types: BabelTypes}) {
3938
if (!fileName) return;
4039
const importedStyles = allImports && [...allImports.others]
4140
.filter(x => x.endsWith('.scss'))
42-
.map(x => x.replace(new RegExp('^'+ImportProcessor.options.namespace + '\/'), ''))
41+
.map(x => x.replace(new RegExp('^'+ImportProcessor.options.namespace + '/'), ''))
4342
.map(x => p.relative(p.dirname(fileName), p.join(ImportProcessor.options.root, x)))
4443
.map(x => x.startsWith('.') ? x : `./${x}`);
4544
importedStyles?.forEach((s) => {

package.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626
"test:all": "ember try:each"
2727
},
2828
"dependencies": {
29+
"@babel/core": "^7.23.9",
30+
"@babel/types": "^7.23.9",
2931
"@glimmer/reference": "^0.84.2",
3032
"@glimmer/syntax": "^0.84.2",
31-
"@types/ember__runloop": "^4.0.1",
3233
"broccoli-asset-rev": "^2.7.0",
3334
"broccoli-concat": "^4.2.4",
3435
"broccoli-funnel": "^3.0.3",
@@ -48,9 +49,7 @@
4849
"@commitlint/config-conventional": "^7.1.2",
4950
"@ember/optional-features": "^2.0.0",
5051
"@ember/test-helpers": "^2.7.0",
51-
"@types/ember": "^4.0.0",
52-
"@types/babel__traverse": "^7.18.3",
53-
"@types/babel__core": "^7.18.3",
52+
"@types/node": "^18.15.3",
5453
"@typescript-eslint/eslint-plugin": "^3.1.0",
5554
"@typescript-eslint/parser": "^3.1.0",
5655
"ember-auto-import": "^2.4.1",
@@ -61,21 +60,20 @@
6160
"ember-cli-sass": "^10.0.1",
6261
"ember-cli-sri": "^2.1.1",
6362
"ember-template-lint": "^4.6.0",
64-
"ember-cli-uglify": "^2.1.0",
63+
"ember-cli-terser": "^4.0.2",
6564
"ember-disable-prototype-extensions": "^1.1.3",
6665
"ember-load-initializers": "^2.1.2",
6766
"ember-maybe-import-regenerator": "^0.1.6",
6867
"ember-modifier": "^3.2.7",
6968
"ember-resolver": "^10.1.0",
70-
"ember-source": "^4.3.0",
69+
"ember-source": "^5.6.0",
7170
"ember-source-channel-url": "^1.1.0",
7271
"ember-try": "^1.0.0",
7372
"eslint": "^7.12.1",
7473
"eslint-plugin-ember": "^5.2.0",
7574
"eslint-plugin-node": "^7.0.1",
7675
"husky": "^1.3.1",
7776
"loader.js": "^4.7.0",
78-
"node-sass": "^5.0.0",
7977
"ember-qunit": "^5.1.5",
8078
"qunit": "^2.19.1",
8179
"semantic-release": "^15.13.2",

0 commit comments

Comments
 (0)