-
Notifications
You must be signed in to change notification settings - Fork 329
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
Showing
9 changed files
with
54 additions
and
18 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 was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,3 @@ | ||
import { initAll } from 'govuk-frontend' | ||
|
||
initAll() |
13 changes: 13 additions & 0 deletions
13
.github/workflows/bundler-integrations/vite.config.default.mjs
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,13 @@ | ||
/** @type {import('vite').UserConfig} */ | ||
|
||
import defaultConfig from './vite.config.mjs' | ||
|
||
export default { | ||
build: { | ||
...defaultConfig.build, | ||
rollupOptions: { | ||
...defaultConfig.build.rollupOptions, | ||
input: 'src/default.mjs' | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
.github/workflows/bundler-integrations/vite.config.initAll.mjs
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,13 @@ | ||
/** @type {import('vite').UserConfig} */ | ||
|
||
import defaultConfig from './vite.config.mjs' | ||
|
||
export default { | ||
build: { | ||
...defaultConfig.build, | ||
rollupOptions: { | ||
...defaultConfig.build.rollupOptions, | ||
input: 'src/initAll.mjs' | ||
} | ||
} | ||
} |
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,10 +1,18 @@ | ||
/** @type {import('vite').UserConfig} */ | ||
// the default vite config used by the different test case configs | ||
|
||
export default { | ||
build: { | ||
// Align output with other bundlers to facilitate testing | ||
outDir: 'dist/vite', | ||
assetsDir: '.', | ||
// Prevent minification so we can see actual class/function names | ||
minify: false | ||
minify: false, | ||
rollupOptions: { | ||
input: ['./src/default.mjs', './src/initAll.mjs'], | ||
output: { | ||
entryFileNames: '[name].js' | ||
} | ||
} | ||
} | ||
} |
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