File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 11import pkg from '../../../package.json' with { type : 'json' }
22import { uuid } from './common/utils/index.mjs'
33
4- // NOTE: The following import uses Vite's '?raw' query parameter to import the SVG as a string.
5- // This will only work in Vite environments. In non-Vite environments, BUNDLED_SVG_SPRITE will be null.
6- let BUNDLED_SVG_SPRITE = null ;
7- try {
8- // Vite-specific import. Will fail in non-Vite environments.
9- // eslint-disable-next-line import/no-unresolved
10- BUNDLED_SVG_SPRITE = require ( '../../lib/icons/formeo-sprite.svg?raw' ) ;
11- } catch ( e ) {
12- // Fallback: BUNDLED_SVG_SPRITE remains null.
13- }
14- export { BUNDLED_SVG_SPRITE } ;
4+ export { default as BUNDLED_SVG_SPRITE } from '../../lib/icons/formeo-sprite.svg?raw'
155
166const name = pkg . name
177export const version = pkg . version
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const sharedConfig = {
4646export default defineConfig ( {
4747 ...sharedConfig ,
4848 root : 'src/demo' ,
49- base : process . env . NODE_ENV === 'production' ? '/formeo/' : '/' ,
49+ base : '/' ,
5050 resolve : {
5151 alias : {
5252 formeo : resolve ( __dirname , 'src/lib/js/index.js' ) ,
You can’t perform that action at this time.
0 commit comments