-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
173 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
packages/ivy-design-wc/vite.config.ts.timestamp-1705542549613-61ea886604315.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// vite.config.ts | ||
import { fileURLToPath, URL } from "node:url"; | ||
import { defineConfig } from "file:///E:/private/ivy-design-wc/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/index.js"; | ||
import vue from "file:///E:/private/ivy-design-wc/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@vitejs/plugin-vue/dist/index.mjs"; | ||
import vueJsx from "file:///E:/private/ivy-design-wc/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs"; | ||
import dts from "file:///E:/private/ivy-design-wc/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vite-plugin-dts/dist/index.mjs"; | ||
var __vite_injected_original_import_meta_url = "file:///E:/private/ivy-design-wc/packages/ivy-design-wc/vite.config.ts"; | ||
var vite_config_default = defineConfig({ | ||
appType: "custom", | ||
publicDir: false, | ||
plugins: [ | ||
vue({ | ||
template: { | ||
compilerOptions: { | ||
isCustomElement: (tag) => tag.startsWith("ivy-") | ||
} | ||
} | ||
}), | ||
vueJsx(), | ||
dts({ | ||
outDir: "types" | ||
}) | ||
], | ||
resolve: { | ||
alias: { | ||
"@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url)) | ||
} | ||
}, | ||
build: { | ||
target: "es2017", | ||
lib: { | ||
entry: fileURLToPath(new URL("./src/index.ts", __vite_injected_original_import_meta_url)), | ||
name: "ivy-design", | ||
fileName: (format) => { | ||
if (format === "es") | ||
return "ivy-design.mjs"; | ||
return "ivy-design.js"; | ||
} | ||
}, | ||
rollupOptions: { | ||
// treeshake: false, | ||
// input: { | ||
// 'ivy-design': fileURLToPath(new URL('./src/index.ts', import.meta.url)), | ||
// ...genInput() | ||
// }, | ||
output: { | ||
// interop: 'auto', | ||
// format: 'es', | ||
// entryFileNames: '[name].js', | ||
// assetFileNames: (assetInfo) => { | ||
// if (assetInfo.name === 'ivy-design.css') return 'style.css' | ||
// return 'assets/[name][extname]' | ||
// }, | ||
exports: "named" | ||
} | ||
}, | ||
cssTarget: "chrome61" | ||
} | ||
}); | ||
export { | ||
vite_config_default as default | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFxwcml2YXRlXFxcXGl2eS1kZXNpZ24td2NcXFxccGFja2FnZXNcXFxcaXZ5LWRlc2lnbi13Y1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA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WZpbmVDb25maWcoe1xuICAgIGFwcFR5cGU6ICdjdXN0b20nLFxuICAgIHB1YmxpY0RpcjogZmFsc2UsXG4gICAgcGx1Z2luczogW1xuICAgICAgICB2dWUoe1xuICAgICAgICAgICAgdGVtcGxhdGU6IHtcbiAgICAgICAgICAgICAgICBjb21waWxlck9wdGlvbnM6IHtcbiAgICAgICAgICAgICAgICAgICAgaXNDdXN0b21FbGVtZW50OiAodGFnKSA9PiB0YWcuc3RhcnRzV2l0aCgnaXZ5LScpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9KSxcbiAgICAgICAgdnVlSnN4KCksXG4gICAgICAgIGR0cyh7XG4gICAgICAgICAgICBvdXREaXI6ICd0eXBlcydcbiAgICAgICAgfSlcbiAgICBdLFxuICAgIHJlc29sdmU6IHtcbiAgICAgICAgYWxpYXM6IHtcbiAgICAgICAgICAgICdAJzogZmlsZVVSTFRvUGF0aChuZXcgVVJMKCcuL3NyYycsIGltcG9ydC5tZXRhLnVybCkpXG4gICAgICAgIH1cbiAgICB9LFxuICAgIGJ1aWxkOiB7XG4gICAgICAgIHRhcmdldDogJ2VzMjAxNycsXG4gICAgICAgIGxpYjoge1xuICAgICAgICAgICAgZW50cnk6IGZpbGVVUkxUb1BhdGgobmV3IFVSTCgnLi9zcmMvaW5kZXgudHMnLCBpbXBvcnQubWV0YS51cmwpKSxcbiAgICAgICAgICAgIG5hbWU6ICdpdnktZGVzaWduJyxcbiAgICAgICAgICAgIGZpbGVOYW1lOiAoZm9ybWF0KSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKGZvcm1hdCA9PT0gJ2VzJykgcmV0dXJuICdpdnktZGVzaWduLm1qcydcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2l2eS1kZXNpZ24uanMnXG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHJvbGx1cE9wdGlvbnM6IHtcbiAgICAgICAgICAgIC8vIHRyZWVzaGFrZTogZmFsc2UsXG4gICAgICAgICAgICAvLyBpbnB1dDoge1xuICAgICAgICAgICAgLy8gICAgICdpdnktZGVzaWduJzogZmlsZVVSTFRvUGF0aChuZXcgVVJMKCcuL3NyYy9pbmRleC50cycsIGltcG9ydC5tZXRhLnVybCkpLFxuICAgICAgICAgICAgLy8gICAgIC4uLmdlbklucHV0KClcbiAgICAgICAgICAgIC8vIH0sXG4gICAgICAgICAgICBvdXRwdXQ6IHtcbiAgICAgICAgICAgICAgICAvLyBpbnRlcm9wOiAnYXV0bycsXG4gICAgICAgICAgICAgICAgLy8gZm9ybWF0OiAnZXMnLFxuICAgICAgICAgICAgICAgIC8vIGVudHJ5RmlsZU5hbWVzOiAnW25hbWVdLmpzJyxcbiAgICAgICAgICAgICAgICAvLyBhc3NldEZpbGVOYW1lczogKGFzc2V0SW5mbykgPT4ge1xuICAgICAgICAgICAgICAgIC8vICAgICBpZiAoYXNzZXRJbmZvLm5hbWUgPT09ICdpdnktZGVzaWduLmNzcycpIHJldHVybiAnc3R5bGUuY3NzJ1xuXG4gICAgICAgICAgICAgICAgLy8gICAgIHJldHVybiAnYXNzZXRzL1tuYW1lXVtleHRuYW1lXSdcbiAgICAgICAgICAgICAgICAvLyB9LFxuICAgICAgICAgICAgICAgIGV4cG9ydHM6ICduYW1lZCdcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSxcblxuICAgICAgICBjc3NUYXJnZXQ6ICdjaHJvbWU2MSdcbiAgICB9XG59KVxuIl0sCiAgIm1hcHBpbmdzIjogIjtBQUF5VSxTQUFTLGVBQWUsV0FBVztBQUc1VyxTQUFTLG9CQUFvQjtBQUM3QixPQUFPLFNBQVM7QUFDaEIsT0FBTyxZQUFZO0FBQ25CLE9BQU8sU0FBUztBQU4rTCxJQUFNLDJDQUEyQztBQW9CaFEsSUFBTyxzQkFBUSxhQUFhO0FBQUEsRUFDeEIsU0FBUztBQUFBLEVBQ1QsV0FBVztBQUFBLEVBQ1gsU0FBUztBQUFBLElBQ0wsSUF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