Skip to content

Commit

Permalink
Register a static asset path in config to prevent Vite "Pre-transform…
Browse files Browse the repository at this point in the history
… error" warning. Fixes #447.
  • Loading branch information
dillonkearns committed Jan 21, 2024
1 parent 25f89fe commit accbf84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generator/src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ export async function run(options) {
configFile: false,
root: process.cwd(),
base: options.base,
assetsInclude: [
'/elm-pages.js'
],
ssr: false,

build: {
Expand Down
3 changes: 3 additions & 0 deletions generator/src/dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ export async function start(options) {
base: options.base,
port: options.port,
},
assetsInclude: [
'/elm-pages.js'
],
appType: "custom",
configFile: false,
root: process.cwd(),
Expand Down

0 comments on commit accbf84

Please sign in to comment.