File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ import inlineImage from 'esbuild-plugin-inline-image'
12
12
import * as fs from 'fs'
13
13
import { load } from 'js-yaml'
14
14
import vsCodeProblemsPatchPlugin from 'node-modules-vscode-problems-patch'
15
- import * as path from 'path'
16
- import { isAbsolute , join } from 'path'
15
+ import path , { isAbsolute , join } from 'path'
17
16
import { TextDecoder } from 'util'
18
17
import svelteConfig from '../svelte.config.js'
19
18
import assetOverridePlugin from './esbuild-plugins/assetOverride.js'
@@ -169,8 +168,8 @@ const yamlPlugin: (opts: {
169
168
if ( options ?. transform && options . transform ( parsed , args . path ) !== void 0 )
170
169
parsed = options . transform ( parsed , args . path )
171
170
return {
172
- contents : JSON . stringify ( parsed ) ,
173
- loader : 'json ' ,
171
+ contents : `export default ${ JSON . stringify ( parsed ) } ` ,
172
+ loader : 'js ' ,
174
173
watchFiles : [ args . path ] ,
175
174
}
176
175
} )
You can’t perform that action at this time.
0 commit comments