0.0.21 • Published 5 days ago
@ui.js.org/ui-js-stage-1-esbuild-plugin v0.0.21
ui.js stage1 experimental tags bundling with esbuild
Compatible with ui.js 0.5-0.7.x
const esbuild = require('esbuild');
const UIPlugin = require('@ui.js.org/ui-js-stage-1-esbuild-plugin');
(async () => {
await esbuild.build({
supported: {
"dynamic-import": true
},
// application entry point
entryPoints: ['src/index.js'],
format: 'esm',
bundle: true,
minify: true,
treeShaking: true,
target: ['chrome60','firefox60','safari12'],
// bundled application
outfile: 'public/bundle.js',
plugins: [await UIPlugin({
// scan 'src/ui' folder for all *.tag files
path: 'src/ui',
// all tags in 'src/ui/tags' folder, including subfolders, will have the same name in the DOM
// as the file name. File names must contain dashes. "my-component.tag" will be <my-component/>
keepName: '/tags/**/*-*.tag', // optional
// ignore adding *.tag files from 'src/ui/my-dev' folder to the package
ignore: '/my-dev/**' // optional
})],
})
})();
0.0.21
5 days ago
0.0.20
8 days ago
0.0.14
8 days ago
0.0.15
8 days ago
0.0.16
8 days ago
0.0.17
8 days ago
0.0.18
8 days ago
0.0.19
8 days ago
0.0.13
8 days ago
0.0.12
1 month ago
0.0.11
1 month ago
0.0.10
1 month ago
0.0.9
1 month ago
0.0.8
1 month ago
0.0.7
2 months ago
0.0.6
2 months ago
0.0.5
2 months ago
0.0.4
2 months ago
0.0.3
2 months ago
0.0.2
2 months ago
0.0.1
2 months ago
0.0.0
2 months ago