Skip to content

Commit e16f7e1

Browse files
committed
Revert "Basic shadow-dom support (#226)"
This reverts commit 6914072.
1 parent c84c11e commit e16f7e1

File tree

6 files changed

+5
-23
lines changed

6 files changed

+5
-23
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,4 @@ __TEST__
6565
/playwright-report/
6666
/blob-report/
6767
/playwright/.cache/
68-
/e2e-report/
69-
_examples
68+
/e2e-report/

programs/cli/types/index.d.ts

-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,3 @@ interface ImportMetaEnv {
2020
interface ImportMeta {
2121
readonly env: ImportMetaEnv
2222
}
23-
24-
interface Window {
25-
__EXTENSION_SHADOW_ROOT__: ShadowRoot
26-
}

programs/develop/webpack/plugin-css/common-style-loaders.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {isUsingTailwind} from './css-tools/tailwind'
55
import {isUsingSass} from './css-tools/sass'
66
import {isUsingLess} from './css-tools/less'
77
import {maybeUsePostCss} from './css-tools/postcss'
8+
// import {isUsingVue} from '../plugin-js-frameworks/js-tools/vue'
89

910
export interface StyleLoaderOptions {
1011
mode: DevOptions['mode']

programs/develop/webpack/plugin-css/css-tools/less.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export async function maybeUseLess(
5959
test: /\.less$/,
6060
oneOf: [
6161
{
62-
resourceQuery: /inline_style/,
62+
resourceQuery: /is_content_css_import=true/,
6363
use: await commonStyleLoaders(projectPath, {
6464
loader: 'less-loader',
6565
mode,

programs/develop/webpack/plugin-css/css-tools/sass.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function maybeUseSass(
7070
exclude: /\.module\.(s(a|c)ss)$/,
7171
oneOf: [
7272
{
73-
resourceQuery: /inline_style/,
73+
resourceQuery: /is_content_css_import=true/,
7474
use: await commonStyleLoaders(projectPath, {
7575
loader: 'sass-loader',
7676
mode,
@@ -90,7 +90,7 @@ export async function maybeUseSass(
9090
test: /\.module\.(s(a|c)ss)$/,
9191
oneOf: [
9292
{
93-
resourceQuery: /inline_style/,
93+
resourceQuery: /is_content_css_import=true/,
9494
use: await commonStyleLoaders(projectPath, {
9595
loader: 'sass-loader',
9696
mode,

programs/develop/webpack/plugin-css/index.ts

-14
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ export class CssPlugin {
3636
test: /\.css$/,
3737
exclude: /\.module\.css$/,
3838
oneOf: [
39-
{
40-
resourceQuery: /inline_style/,
41-
use: await commonStyleLoaders(projectPath, {
42-
mode: mode as 'development' | 'production',
43-
useMiniCssExtractPlugin: false
44-
})
45-
},
4639
{
4740
use: await commonStyleLoaders(projectPath, {
4841
mode: mode as 'development' | 'production',
@@ -54,13 +47,6 @@ export class CssPlugin {
5447
{
5548
test: /\.module\.css$/,
5649
oneOf: [
57-
{
58-
resourceQuery: /inline_style/,
59-
use: await commonStyleLoaders(projectPath, {
60-
mode: mode as 'development' | 'production',
61-
useMiniCssExtractPlugin: false
62-
})
63-
},
6450
{
6551
use: await commonStyleLoaders(projectPath, {
6652
mode: mode as 'development' | 'production',

0 commit comments

Comments
 (0)