Skip to content

Commit

Permalink
macros
Browse files Browse the repository at this point in the history
  • Loading branch information
alshdavid committed Dec 17, 2024
1 parent 602b9c6 commit bbd22e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/core/integration-tests/test/library-bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ describe.v2('library bundler', function () {
export {foo, bar} from './foo';
foo.js:
import {css} from './macro' with {type: 'macro'};
import {css} from './macro.cjs' with {type: 'macro'};
export function foo() {
return css('.a { color: red }');
}
Expand All @@ -150,8 +150,8 @@ describe.v2('library bundler', function () {
return css('.b { color: pink }');
}
macro.js:
export function css(content) {
macro.cjs:
module.exports.css = function css(content) {
this.addAsset({type: 'css', content});
return 'hi';
}
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = {
'require-await': 'error',
// Use internal rule
'monorepo/no-relative-import': 'off',
'@atlaspack/no-relative-import': 'error',
'@atlaspack/no-relative-import': 'error'
},
settings: {
flowtype: {
Expand Down
2 changes: 0 additions & 2 deletions packages/runtimes/js/test/bundle-url-shards.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import assert from 'assert';

import {fsFixture, overlayFS, bundle} from '@atlaspack/test-utils';

// $FlowFixMe importing TypeScript
import {getShardedBundleURL} from '../src/helpers/bundle-url-shards';

const createErrorStack = (url) => {
Expand Down

0 comments on commit bbd22e4

Please sign in to comment.