@atelier-wb/vite-plugin-svelte
Advanced tools
Comparing version 0.1.0 to 0.2.0-alpha.0
{ | ||
"name": "@atelier-wb/vite-plugin-svelte", | ||
"version": "0.1.0", | ||
"version": "0.2.0-alpha.0", | ||
"description": "Vite plugin to process your svelte components", | ||
@@ -11,8 +11,8 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"@atelier-wb/ui": "^0.1.0", | ||
"ajv": "^8.1.0", | ||
"sirv": "^1.0.11" | ||
"@atelier-wb/ui": "^0.2.0-alpha.0", | ||
"ajv": "^8.6.3", | ||
"sirv": "^1.0.17" | ||
}, | ||
"peerDependencies": { | ||
"vite": "^2.1.5" | ||
"vite": "^2.5.10" | ||
}, | ||
@@ -23,3 +23,3 @@ "devDependencies": { | ||
"got": "^11.8.2", | ||
"jest": "^26.6.3", | ||
"jest": "^27.2.2", | ||
"jest-watch-typeahead": "^0.6.2" | ||
@@ -26,0 +26,0 @@ }, |
@@ -14,3 +14,3 @@ const { resolve } = require('path') | ||
path: { type: 'string' }, | ||
url: { type: 'string', pattern: '^\\/.' }, | ||
url: { type: 'string', pattern: '^\\/' }, | ||
toolRegexp: { type: 'string' }, | ||
@@ -70,2 +70,3 @@ workframeHtml: { type: 'string' }, | ||
const options = { ...defaultOptions, ...pluginOptions } | ||
const hasTrailingUrl = options.url.endsWith('/') | ||
const valid = validate(options) | ||
@@ -87,4 +88,2 @@ if (!valid) { | ||
async configureServer(server) { | ||
const hasTrailingUrl = options.url.endsWith('/') | ||
let uiPath = resolve(__dirname, '..', '..', 'ui') | ||
@@ -135,3 +134,6 @@ if (options.bundled) { | ||
async load(id) { | ||
if (id === `${options.url}/${options.workframeId}`) { | ||
if ( | ||
id === | ||
`${options.url}${hasTrailingUrl ? '' : '/'}${options.workframeId}` | ||
) { | ||
return buildWorkframe( | ||
@@ -138,0 +140,0 @@ await findTools(options.path, toolRegexp), |
5076
129
+ Added@atelier-wb/ui@0.2.1(transitive)
- Removed@atelier-wb/ui@0.1.0(transitive)
Updatedajv@^8.6.3
Updatedsirv@^1.0.17