-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
016acfc
commit 89cdeaf
Showing
8 changed files
with
20,013 additions
and
14,771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/src/lib/webpack/transform-config.js b/src/lib/webpack/transform-config.js | ||
index a36ae642575048993652002ad86f524a45f3fd83..7f14bd60b73cbc0eec12f24d2fead57e6e915532 100644 | ||
--- a/src/lib/webpack/transform-config.js | ||
+++ b/src/lib/webpack/transform-config.js | ||
@@ -107,7 +107,8 @@ module.exports = async function (env, webpackConfig, isServer = false) { | ||
|
||
let m; | ||
try { | ||
- m = esmImport(cliConfig); | ||
+ // me and Jason went through the seven stages of grief to find this line ~Andrew | ||
+ m = await import(cliConfig); | ||
} catch (error) { | ||
warn( | ||
`Failed to load preact-cli config file, using default!\n${ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"lint:strict": "sh -c \"tsc --noEmit -p tsconfig.strict.json ; eslint .\"", | ||
"start": "node --enable-source-maps --unhandled-rejections=strict dist/server/index.js", | ||
"migrate": "yarn build:ts && cross-env RCTF_DATABASE_MIGRATE=only yarn start", | ||
"build:client": "preact build --src client/src --template client/index.html --dest dist/build --no-prerender --no-inline-css", | ||
"build:client": "preact build --verbose --src client/src --template client/index.html --dest dist/build --no-prerender --no-inline-css", | ||
"build:ts": "tsc && yarn copy-static", | ||
"build": "yarn build:ts && yarn build:client", | ||
"watch:client": "cross-env NODE_ENV=development preact watch --src client/src --template client/index.html", | ||
|
@@ -101,9 +101,9 @@ | |
"pascal-case": "3.1.1", | ||
"pino-pretty": "4.1.0", | ||
"preact": "^10.19.4", | ||
"preact-cli": "^3.5.1", | ||
"preact-markup": "2.0.0", | ||
"preact-router": "3.2.1", | ||
"preact-cli": "patch:preact-cli@npm%3A3.5.1#.yarn/patches/preact-cli-npm-3.5.1-ba330688c2.patch", | ||
"preact-markup": "^2.1.1", | ||
"preact-router": "^4.1.2", | ||
"purgecss-webpack-plugin": "2.3.0", | ||
"snarkdown": "1.2.2", | ||
"supertest": "4.0.2", | ||
|
@@ -125,5 +125,6 @@ | |
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters