@s-ui/bundler 9.16.0 → 9.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/loaders/LinkLoader.js +4 -2
- package/package.json +9 -9
package/loaders/LinkLoader.js
CHANGED
|
@@ -2,7 +2,9 @@ const LIB_PATH = '/lib'
|
|
|
2
2
|
|
|
3
3
|
const createMatchTransformer = linkedPackagePath => match => {
|
|
4
4
|
// we have to detect if the last char is a quote or /lib to add the correct suffix
|
|
5
|
-
const
|
|
5
|
+
const lastChar = match[match.length - 1]
|
|
6
|
+
const nextLastChat = lastChar === "'" ? "'" : '"'
|
|
7
|
+
const suffix = lastChar === nextLastChat ? nextLastChat : LIB_PATH
|
|
6
8
|
return `${linkedPackagePath}${suffix}`.replace('/src/lib', '/src')
|
|
7
9
|
}
|
|
8
10
|
|
|
@@ -19,7 +21,7 @@ function linkLoader(source) {
|
|
|
19
21
|
// create a regex for detecting if the package is used in the source
|
|
20
22
|
// we have to check if it ends with quote (normal import)
|
|
21
23
|
// or with /lib, as we might be importing a submodule of a package
|
|
22
|
-
const regex = new RegExp(`${prefix}${pkg}(\\${LIB_PATH}|')`, 'g')
|
|
24
|
+
const regex = new RegExp(`${prefix}${pkg}(\\${LIB_PATH}|"|')`, 'g')
|
|
23
25
|
// create a function that will be used when match ocurred
|
|
24
26
|
const transformMatch = createMatchTransformer(packagesToLink[pkg])
|
|
25
27
|
// replace all the uses of the package by using the function
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s-ui/bundler",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.19.0",
|
|
4
4
|
"description": "Config-free bundler for ES6 React apps.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sui-bundler": "./bin/sui-bundler.js"
|
|
@@ -21,34 +21,34 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/SUI-Components/sui/tree/master/packages/sui-bundler#readme",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@babel/core": "7.17.
|
|
24
|
+
"@babel/core": "7.17.10",
|
|
25
25
|
"@s-ui/helpers": "1",
|
|
26
26
|
"@s-ui/sass-loader": "1",
|
|
27
27
|
"address": "1.1.2",
|
|
28
|
-
"autoprefixer": "10.4.
|
|
29
|
-
"babel-loader": "8.2.
|
|
28
|
+
"autoprefixer": "10.4.6",
|
|
29
|
+
"babel-loader": "8.2.5",
|
|
30
30
|
"babel-preset-sui": "3",
|
|
31
31
|
"buffer": "6.0.3",
|
|
32
32
|
"commander": "8.3.0",
|
|
33
33
|
"css-loader": "6.7.1",
|
|
34
34
|
"css-minimizer-webpack-plugin": "3.4.1",
|
|
35
|
-
"esbuild": "0.14.
|
|
35
|
+
"esbuild": "0.14.38",
|
|
36
36
|
"escape-string-regexp": "4.0.0",
|
|
37
37
|
"fast-glob": "3.2.11",
|
|
38
38
|
"find-free-ports": "3.0.0",
|
|
39
39
|
"html-webpack-plugin": "5.5.0",
|
|
40
40
|
"https-browserify": "1.0.0",
|
|
41
41
|
"mini-css-extract-plugin": "2.6.0",
|
|
42
|
-
"postcss": "8.4.
|
|
42
|
+
"postcss": "8.4.13",
|
|
43
43
|
"postcss-loader": "6.2.1",
|
|
44
44
|
"process": "0.11.10",
|
|
45
|
-
"sass": "1.
|
|
45
|
+
"sass": "1.51.0",
|
|
46
46
|
"stream-http": "3.2.0",
|
|
47
47
|
"strip-ansi": "6.0.1",
|
|
48
48
|
"style-loader": "3.3.1",
|
|
49
49
|
"url": "0.11.0",
|
|
50
|
-
"webpack": "5.
|
|
51
|
-
"webpack-dev-server": "4.
|
|
50
|
+
"webpack": "5.72.0",
|
|
51
|
+
"webpack-dev-server": "4.8.1",
|
|
52
52
|
"webpack-manifest-plugin": "5.0.0",
|
|
53
53
|
"webpack-node-externals": "3.0.0"
|
|
54
54
|
}
|