diff options
author | 2022-09-13 14:02:57 -0500 | |
---|---|---|
committer | 2022-09-13 14:02:57 -0500 | |
commit | 8cfb3fb535a16ebb1c185de2609435fdd7954611 (patch) | |
tree | ec612f3b5c099efba5a66b382705aa3c0454b0a1 /examples/component/demo/astro.config.mjs | |
parent | 234057b020d611a334f8ef8cfa4694245b89a600 (diff) | |
download | astro-8cfb3fb535a16ebb1c185de2609435fdd7954611.tar.gz astro-8cfb3fb535a16ebb1c185de2609435fdd7954611.tar.zst astro-8cfb3fb535a16ebb1c185de2609435fdd7954611.zip |
Migrate examples to `type: module` (#4662)
* chore: move examples to type module
* chore: prefer astro.config.mjs to astro.config.js
* chore: reference CJS config file
Co-authored-by: Nate Moore <nate@astro.build>
Diffstat (limited to 'examples/component/demo/astro.config.mjs')
-rw-r--r-- | examples/component/demo/astro.config.mjs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/component/demo/astro.config.mjs b/examples/component/demo/astro.config.mjs new file mode 100644 index 000000000..2d73a2807 --- /dev/null +++ b/examples/component/demo/astro.config.mjs @@ -0,0 +1,10 @@ +import { defineConfig } from 'astro/config'; + +// https://astro.build/config +export default defineConfig({ + vite: { + ssr: { + noExternal: ['@example/my-component'], + }, + }, +}); |