Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"standalone:require": "node ./src/examples/example-standalone-require.cjs"
"preview": "vite preview"
},
"dependencies": {
"@excel-builder-vanilla/types": "workspace:*",
Expand Down
4 changes: 0 additions & 4 deletions packages/demo/src/examples/example-standalone-require.cjs

This file was deleted.

11 changes: 4 additions & 7 deletions packages/demo/src/getting-started.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,14 @@ <h5>CDN</h5>
Excel-Builder-Vanilla. Just use the following CDN links.
</p>
<p>
The project now ships its <code>.js</code> files as ESM by default, if you still wish to use the old CommonJS (CJS) format with
<code>require()</code>, then you will have to use <code>.cjs</code> file extension.
The project now ships as ESM-Only, if you still wish to use the legacy CommonJS (CJS) format with <code>require()</code>,
then use previous 3.x version.
</p>

<div style="background: #f7f7f7; padding: 10px">
<pre>
&lt;!-- (IIFE Standalone Script) Latest compiled and minified JavaScript --&gt;
&lt;script type=&quot;module&quot; src=&quot;<span style="color:#880000">https://cdn.jsdelivr.net/npm/excel-builder-vanilla@3.0.14/dist/excel-builder.iife.js</span>&quot;&gt;&lt;/script&gt;

&lt;!-- (CJS Files <span style="color:#d63384">.cjs</span> extension) Latest compiled and minified JavaScript --&gt;
&lt;script src=&quot;<span style="color:#880000">https://cdn.jsdelivr.net/npm/excel-builder-vanilla@3.0.14/dist/excel-builder.cjs</span>&quot;&gt;&lt;/script&gt;</pre>
&lt;script type=&quot;module&quot; src=&quot;<span style="color:#880000">https://cdn.jsdelivr.net/npm/excel-builder-vanilla@4.0.0/dist/excel-builder.iife.js</span>&quot;&gt;&lt;/script&gt;
</div>

<quote>
Expand All @@ -58,7 +55,7 @@ <h5>NPM</h5>
</div>
</section>

<h5>CommonJS <code>require()</code> / ESM <code>import from</code></h5>
<h5>ESM <code>import from</code></h5>
<p>The library provides both CommonJS or ESM, see the example below:</p>
<div style="background: #f7f7f7; padding: 10px">
<pre>
Expand Down
7 changes: 7 additions & 0 deletions packages/demo/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ const base64Loader: Plugin = {

export default defineConfig({
base: './',
css: {
preprocessorOptions: {
scss: {
quietDeps: true,
},
},
},
server: {
port: 3000,
cors: true,
Expand Down
1 change: 0 additions & 1 deletion packages/excel-builder-vanilla-types/dist/index.cjs

This file was deleted.

Loading