vite-plugin-iso-import
Advanced tools
Comparing version 0.0.1 to 0.0.2
import MagicString from 'magic-string' | ||
import { init, parse } from 'es-module-lexer' | ||
const clientRE = /(?:\?|&)client(&|$)/ | ||
const serverRE = /(?:\?|&)server(&|$)/ | ||
const clientRE = /(\?|&)client(&|$)/ | ||
const serverRE = /(\?|&)server(&|$)/ | ||
@@ -36,3 +36,3 @@ /** | ||
// "?foo&client&bar" => "?foo&bar" | ||
s().overwrite(i.s + m.index, i.s + m.index + m[0].length, m[1]) | ||
s().overwrite(i.s + m.index, i.s + m.index + m[0].length, m[2] ? m[1] : '') | ||
} else if ((m = i.n.match(ripRE))) { | ||
@@ -39,0 +39,0 @@ s().overwrite(i.ss, i.se, '') |
{ | ||
"name": "vite-plugin-iso-import", | ||
"description": "Import modules isomorphically", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": "Bjorn Lu", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
6247