Skip to content

Commit

Permalink
fix(NOBUG): remove stray deprecated argument
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-wade committed Jan 14, 2024
1 parent 1802885 commit 3a8f147
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions packages/eleventy-plugin-vanilla-example/.eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ module.exports = function (eleventyConfig) {
eleventyConfig.setBrowserSyncConfig({
open: true,
});
eleventyConfig.addPlugin(tybaltPlugin, {
components: ['./components'],
});
eleventyConfig.addPlugin(tybaltPlugin);

return {
pathPrefix: '/tybalt/',
Expand Down
6 changes: 4 additions & 2 deletions packages/esbuild-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ import type { PluginBuild } from 'esbuild';
import fs from 'node:fs';
import path from 'node:path';

const namespace = 'tybalt-styles';

export default () => ({
name: 'tybalt',
setup(build: PluginBuild) {
build.onResolve({ filter: /.*\.css$/ }, (args) => {
return {
path: path.resolve(args.resolveDir, args.path),
namespace: 'tybalt-styles',
namespace,
};
});

build.onLoad({ filter: /.*/, namespace: 'tybalt-styles' }, async (args) => {
build.onLoad({ filter: /.*/, namespace }, async (args) => {
const contents = await fs.promises.readFile(args.path);
return {
contents,
Expand Down

0 comments on commit 3a8f147

Please sign in to comment.