-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from unstubbable/internal-condtional-exports
Build without the need to compile
- Loading branch information
Showing
17 changed files
with
505 additions
and
43 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
18 | ||
20 |
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 |
---|---|---|
|
@@ -6,13 +6,13 @@ | |
"author": "Hendrik Liebau <[email protected]>", | ||
"type": "module", | ||
"scripts": { | ||
"build": "webpack --mode production", | ||
"build:dev": "webpack --mode development", | ||
"build": "NODE_OPTIONS='--import=tsx --conditions=@mfng:internal' webpack --mode production", | ||
"build:dev": "NODE_OPTIONS='--import=tsx --conditions=@mfng:internal' webpack --mode development", | ||
"deploy": "wrangler publish -c src/worker/wrangler.toml", | ||
"dev": "npm run start", | ||
"start": "wrangler dev -c src/worker/wrangler.toml -l", | ||
"watch": "webpack --mode production --watch", | ||
"watch:dev": "webpack --mode development --watch" | ||
"watch": "NODE_OPTIONS='--import=tsx --conditions=@mfng:internal' webpack --mode production --watch", | ||
"watch:dev": "NODE_OPTIONS='--import=tsx --conditions=@mfng:internal' webpack --mode development --watch" | ||
}, | ||
"dependencies": { | ||
"@cloudflare/kv-asset-handler": "^0.3.0", | ||
|
@@ -40,6 +40,7 @@ | |
"source-map-loader": "^4.0.1", | ||
"swc-loader": "^0.2.3", | ||
"tailwindcss": "^3.2.7", | ||
"tsx": "^4.1.0", | ||
"webpack": "^5.77.0", | ||
"webpack-cli": "^5.0.1", | ||
"webpack-manifest-plugin": "^5.0.0", | ||
|
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
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 |
---|---|---|
|
@@ -6,11 +6,17 @@ | |
"author": "Hendrik Liebau <[email protected]>", | ||
"type": "module", | ||
"exports": { | ||
"./app.js": "./lib/src/server/app.js", | ||
"./location-server-context.js": "./lib/src/shared/location-server-context.js", | ||
"./navigation-context.js": "./lib/src/client/navigation-context.js", | ||
"./app.js": { | ||
"@mfng:internal": "./src/server/app.tsx", | ||
"types": "./lib/src/server/app.d.ts", | ||
"default": "./lib/src/server/app.js" | ||
}, | ||
"./package.json": "./package.json", | ||
"./tailwind.config.cjs": "./lib/tailwind.config.cjs" | ||
"./tailwind.config.cjs": { | ||
"@mfng:internal": "./tailwind.config.cjs", | ||
"types": "./lib/tailwind.config.d.cts", | ||
"default": "./lib/tailwind.config.cjs" | ||
} | ||
}, | ||
"files": [ | ||
"lib", | ||
|
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 |
---|---|---|
|
@@ -6,13 +6,14 @@ | |
"author": "Hendrik Liebau <[email protected]>", | ||
"type": "module", | ||
"scripts": { | ||
"build": "webpack --mode production", | ||
"build:dev": "webpack --mode development", | ||
"build": "NODE_OPTIONS='--import=tsx --conditions=@mfng:internal' webpack --mode production", | ||
"build:dev": "NODE_OPTIONS='--import=tsx --conditions=@mfng:internal' webpack --mode development", | ||
"build:node18": "NODE_OPTIONS='--loader=tsx --conditions=@mfng:internal' webpack --mode production", | ||
"deploy": "vercel deploy --prebuilt", | ||
"dev": "npm run start", | ||
"start": "node dev-server/run.js", | ||
"watch": "webpack --mode production --watch", | ||
"watch:dev": "webpack --mode development --watch" | ||
"watch": "NODE_OPTIONS='--import=tsx --conditions=@mfng:internal' webpack --mode production --watch", | ||
"watch:dev": "NODE_OPTIONS='--import=tsx --conditions=@mfng:internal' webpack --mode development --watch" | ||
}, | ||
"dependencies": { | ||
"@mfng/core": "*", | ||
|
@@ -44,6 +45,7 @@ | |
"source-map-loader": "^4.0.1", | ||
"swc-loader": "^0.2.3", | ||
"tailwindcss": "^3.2.7", | ||
"tsx": "^4.1.0", | ||
"vercel": "^28.18.3", | ||
"webpack": "^5.77.0", | ||
"webpack-cli": "^5.0.1", | ||
|
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
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
Oops, something went wrong.
474fd5d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mfng – ./
mfng-git-main-unstubbable.vercel.app
mfng.vercel.app
mfng-unstubbable.vercel.app