diff --git a/examples/css-modules/rollup.config.js b/examples/css-modules/rollup.config.js index bfcfc03..5b4d9bd 100644 --- a/examples/css-modules/rollup.config.js +++ b/examples/css-modules/rollup.config.js @@ -15,16 +15,13 @@ const config = [ // Resolve packages from `node_modules` e.g. `style-inject` module // used by `rollup-plugin-postcss` to inline CSS. NodeResolve(), - VuePlugin(), - // Process only ` diff --git a/test/core.e2e.ts b/test/core.e2e.ts index 3dad6ca..8b63f15 100644 --- a/test/core.e2e.ts +++ b/test/core.e2e.ts @@ -56,9 +56,9 @@ describe('css-modules', () => { expect(result.output[0].code).not.toEqual( expect.stringContaining('.red {\n color: red;\n}') ) - expect(result.output[0].code).toEqual(expect.stringContaining('._red_')) + expect(result.output[0].code).toEqual(expect.stringContaining('.red___')) expect(result.output[0].code).toEqual( - expect.stringContaining('{"red":"_red_') + expect.stringContaining('{"red":"red___') ) }) @@ -67,7 +67,7 @@ describe('css-modules', () => { expect.stringContaining('.__scopeId = "data-v-') ) expect(result.output[0].code).not.toEqual( - expect.stringContaining('.green {\n color: red;\n}') + expect.stringContaining('.green {\n color: green;\n}') ) expect(result.output[0].code).toEqual( expect.stringContaining('.green[data-v-')