diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-15 11:37:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-15 11:37:20 +0000 |
commit | 22daa00afb1a5d628e0267fba0f062c4f8fb5613 (patch) | |
tree | c954c1be5487c69839459d79d74f139e3ae28011 /build/build-plugins.js | |
parent | Adding upstream version 5.3.1+dfsg. (diff) | |
download | bootstrap-html-22daa00afb1a5d628e0267fba0f062c4f8fb5613.tar.xz bootstrap-html-22daa00afb1a5d628e0267fba0f062c4f8fb5613.zip |
Adding upstream version 5.3.2+dfsg.upstream/5.3.2+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | build/build-plugins.mjs (renamed from build/build-plugins.js) | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/build/build-plugins.js b/build/build-plugins.mjs index b2833a3..77e6307 100644 --- a/build/build-plugins.js +++ b/build/build-plugins.mjs @@ -6,13 +6,15 @@ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ -'use strict' +import path from 'node:path' +import { fileURLToPath } from 'node:url' +import { babel } from '@rollup/plugin-babel' +import globby from 'globby' +import { rollup } from 'rollup' +import banner from './banner.mjs' -const path = require('node:path') -const rollup = require('rollup') -const globby = require('globby') -const { babel } = require('@rollup/plugin-babel') -const banner = require('./banner.js') +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(fileURLToPath(import.meta.url)) const sourcePath = path.resolve(__dirname, '../js/src/').replace(/\\/g, '/') const jsFiles = globby.sync(`${sourcePath}/**/*.js`) @@ -37,7 +39,7 @@ for (const file of jsFiles) { const build = async plugin => { const globals = {} - const bundle = await rollup.rollup({ + const bundle = await rollup({ input: plugin.src, plugins: [ babel({ |