fix(vite): asset handling (#3225)
This PR reworks asset handling in our vite plugin. Importing assets in js is now supported.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import type { types } from "@babel/core";
|
||||
import type { PluginObj, types } from "@babel/core";
|
||||
|
||||
export function cjsPlugin(
|
||||
{ types: t }: { types: typeof types },
|
||||
): babel.PluginObj {
|
||||
): PluginObj {
|
||||
const HAS_ES_MODULE = "esModule";
|
||||
const REQUIRE_CALLS = "requireCalls";
|
||||
const ROOT_SCOPE = "rootScope";
|
||||
|
||||
Reference in New Issue
Block a user