@stanlemon/webdev 0.1.46 → 0.1.47
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/.babelrc.json +1 -0
- package/jest.config.js +5 -0
- package/package.json +2 -1
- package/tsconfig.json +4 -6
package/.babelrc.json
CHANGED
package/jest.config.js
CHANGED
|
@@ -6,6 +6,11 @@ const babelOptions = JSON.parse(
|
|
|
6
6
|
readFileSync(new URL("./.babelrc.json", import.meta.url))
|
|
7
7
|
);
|
|
8
8
|
|
|
9
|
+
// Disable using esmodules everywhere
|
|
10
|
+
babelOptions.presets.find(
|
|
11
|
+
(preset) => preset[0] === "@babel/preset-env"
|
|
12
|
+
)[1].modules = "auto";
|
|
13
|
+
|
|
9
14
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
10
15
|
|
|
11
16
|
// These are packages we know ship with esmodules and need to be transformed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stanlemon/webdev",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
4
4
|
"description": "My typical web development setup, but without all the copy and paste.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"@types/webpack-env": "^1.16.4",
|
|
37
37
|
"babel-jest": "^28.1.0",
|
|
38
38
|
"babel-loader": "^8.2.5",
|
|
39
|
+
"babel-plugin-add-import-extension": "^1.6.0",
|
|
39
40
|
"clean-webpack-plugin": "^4.0.0",
|
|
40
41
|
"css-loader": "^6.7.1",
|
|
41
42
|
"dotenv": "^16.0.0",
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"noEmit": true,
|
|
4
|
-
"target": "
|
|
4
|
+
"target": "ES2021",
|
|
5
5
|
"lib": [
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"esnext"
|
|
6
|
+
"ES2021",
|
|
7
|
+
"DOM",
|
|
9
8
|
],
|
|
10
|
-
"sourceMap": true,
|
|
11
9
|
"declaration": true,
|
|
12
10
|
"declarationMap": true,
|
|
13
11
|
"allowJs": true,
|
|
@@ -17,7 +15,7 @@
|
|
|
17
15
|
"forceConsistentCasingInFileNames": true,
|
|
18
16
|
"noFallthroughCasesInSwitch": true,
|
|
19
17
|
"noImplicitAny": true,
|
|
20
|
-
"module": "
|
|
18
|
+
"module": "ES6",
|
|
21
19
|
"moduleResolution": "node",
|
|
22
20
|
"resolveJsonModule": true,
|
|
23
21
|
"isolatedModules": true,
|