Skip to content

Commit 6008713

Browse files
Compile away import.meta.glob and don't publish it (#518)
1 parent ae4ccd1 commit 6008713

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"qunit-dom": "^3.5.0",
9898
"release-it": "^19.0.5",
9999
"rollup": "^4.52.5",
100+
"rollup-plugin-import-meta-glob": "^2.0.0",
100101
"sinon": "^21.0.0",
101102
"testem": "^3.16.0",
102103
"typescript": "~5.8.3",

pnpm-lock.yaml

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rollup.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { dirname, resolve } from 'node:path';
22
import { fileURLToPath } from 'node:url';
33
import { Addon } from '@embroider/addon-dev/rollup';
44
import { babel } from '@rollup/plugin-babel';
5+
import importMetaGlob from 'rollup-plugin-import-meta-glob';
56

67
const addon = new Addon({
78
srcDir: 'src',
@@ -18,6 +19,7 @@ export default {
1819
output: addon.output(),
1920

2021
plugins: [
22+
importMetaGlob(),
2123
// These are the modules that users should be able to import from your
2224
// addon. Anything not listed here may get optimized away.
2325
// By default all your JavaScript modules (**/*.js) will be importable.

0 commit comments

Comments
 (0)