Skip to content

Commit

Permalink
7b8211ce64438679acf68d2734c629bf0b8eb0a2
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Mar 12, 2024
1 parent bb0f1a0 commit 8067c4e
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 83 deletions.
7 changes: 5 additions & 2 deletions build/build-plugins.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { babel } from '@rollup/plugin-babel'
import globby from 'globby'
import { globby } from 'globby'
import { rollup } from 'rollup'
import banner from './banner.mjs'

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`)
const jsFiles = await globby(`${sourcePath}/**/*.js`)

// Array which holds the resolved plugins
const resolvedPlugins = []
Expand All @@ -37,6 +37,9 @@ for (const file of jsFiles) {
}

const build = async plugin => {
/**
* @type {import('rollup').GlobalsOption}
*/
const globals = {}

const bundle = await rollup({
Expand Down
Loading

0 comments on commit 8067c4e

Please sign in to comment.