Create dist/es folder for output bundle

This commit is contained in:
josdejong 2020-05-06 20:22:49 +02:00
parent f33b715391
commit 5ac813f091
4 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
/node_modules/ /node_modules/
/public/build/ /public/dist/
.DS_Store .DS_Store
.idea .idea

View File

@ -20,7 +20,7 @@
<div id="jsoneditor"></div> <div id="jsoneditor"></div>
<script type="module"> <script type="module">
import jsoneditor from '../build/jsoneditor.module.js' import jsoneditor from '../dist/es/jsoneditor.js'
// create the editor // create the editor
const editor = jsoneditor({ const editor = jsoneditor({

View File

@ -45,7 +45,7 @@
</p> </p>
<script type="module"> <script type="module">
import jsoneditor from './build/jsoneditor.module.js' import jsoneditor from './dist/es/jsoneditor.js'
const json = { const json = {
'array': [1, 2, 3, { 'array': [1, 2, 3, {

View File

@ -13,7 +13,7 @@ export default {
sourcemap: true, sourcemap: true,
format: 'esm', // esm, umd, cjs, iife format: 'esm', // esm, umd, cjs, iife
name: 'JSONEditor', name: 'JSONEditor',
file: 'public/build/jsoneditor.module.js' file: 'public/dist/es/jsoneditor.js'
}, },
plugins: [ plugins: [
svelte({ svelte({