Skip to content

Commit

Permalink
Fix lint errors, update missed snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
askoufis committed Sep 16, 2023
1 parent 1441d6d commit 2823a36
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/rollup-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function vanillaExtractPlugin({

return {
code: output,
map: chunkInfo.map ?? null,
map: null,
};
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ exports[`rollup-plugin should build with sourcemaps 1`] = `
],
[
"src/index.js",
";;;;;;AAKA,MAAM,WAAW,GAAG,gBAAgB,CAAC,IAAI,EAAE;AAC3C,EAAE,MAAM,EAAE;AACV,IAAI,eAAe,EAAE,QAAQ;AAC7B,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,CAAC,EAAE,KAAK;AACZ,IAAI,CAAC,EAAE,KAAK;AACZ,IAAI,CAAC,EAAE,MAAM;AACb,GAAG;AACH,CAAC,CAAC,CAAC;AACH,SAAS,MAAM,GAAG;AAClB,EAAE,QAAQ,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC;AAC7B,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC;AAC9C;AACA,aAAa,EAAE,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,CAAC;AAC5D,kBAAkB,EAAE,SAAS,CAAC,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC;AAC3D,kBAAkB,EAAE,QAAQ,CAAC;AAC7B;AACA,iBAAiB,EAAE,SAAS,CAAC,YAAY,CAAC,SAAS,EAAE,SAAS,CAAC;AAC/D,sBAAsB,EAAE,SAAS,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;AAC9D,sBAAsB,EAAE,KAAK,CAAC;AAC9B;AACA,qBAAqB,EAAE,SAA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AA,EAAA,OAAA,CAAQ,KAAK,CAAA,CAAA;AAAA;AAAA;AAAA,6BAAA,EAG/D,UAAU,oBAAgC,CAAA,SAAA,EAAA,SAAA,CAAA;AAAA,kCAAA,EACrC,UAAU,iBAA6B,CAAA,SAAA,EAAA,MAAA,CAAA;AAAA,8BAC3C,EAAA,eAAA,CAAA;AAAA;AAAA,yBAAA,EAEL,UAAU,wBAAoC,CAAA,SAAA,EAAA,SAAA,CAAA;AAAA,8BAAA,EACzC,UAAU,qBAAiC,CAAA,SAAA,EAAA,MAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA,CAAA;AAiBzE,EAAA,MAAM,uBAAuB,QAAS,CAAA,cAAA;AAAA,IACpC,SAAU,CAAA,oBAAA;AAAA,GACZ,CAAA;AAEA,EAAA,IAAI,CAAC,oBAAsB,EAAA;AACzB,IAAM,MAAA,IAAI,MAAM,mCAAmC,CAAA,CAAA;AAAA,GACrD;AAEA,EAAA,cAAA,CAAe,sBAAsB,IAAM,EAAA;AAAA,IACzC,MAAQ,EAAA;AAAA,MACN,eAAiB,EAAA,aAAA;AAAA,MACjB,IAAM,EAAA,YAAA;AAAA,KACR;AAAA,IACA,KAAO,EAAA;AAAA,MACL,CAAG,EAAA,KAAA;AAAA,MACH,CAAG,EAAA,MAAA;AAAA,MACH,CAAG,EAAA,MAAA;AAAA,KACL;AAAA,GACD,CAAA,CAAA;AAED,EAAA,cAAA,CAAe,oBAAsB,EAAA;AAAA,IACnC,CAAC,IAAA,CAAK,MAAO,CAAA,eAAe,GAAG,YAAA;AAAA,GAChC,CAAA,CAAA;AACH,CAAA;AAEA,MAAO,EAAA",
],
[
"src/index.js.map",
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-plugin/src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function compileVanillaSource(
);
const ExternalsPlugin = compat.getExternalsPlugin(loader._compiler);

new NodeTemplatePlugin(outputOptions).apply(childCompiler);
new NodeTemplatePlugin().apply(childCompiler);
new NodeTargetPlugin().apply(childCompiler);

if (compat.isWebpack5) {
Expand Down
11 changes: 2 additions & 9 deletions tests/sprinkles/sprinkles-type-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,8 @@ const noop = (...args: Array<any>) => {};
responsiveValue = ['NOPE'];
// @ts-expect-error
responsiveValue = [123];
responsiveValue = [
'row',
'row',
'row',
// @ts-expect-error
'your',
// @ts-expect-error
'boat',
];
// @ts-expect-error
responsiveValue = ['row', 'row', 'row', 'your', 'boat'];
// @ts-expect-error
responsiveValue = { mobile: 'nope' };
// @ts-expect-error
Expand Down

0 comments on commit 2823a36

Please sign in to comment.