Skip to content

Commit

Permalink
Revert "Basic shadow-dom support (#226)"
Browse files Browse the repository at this point in the history
This reverts commit 6914072.
  • Loading branch information
cezaraugusto committed Nov 26, 2024
1 parent c84c11e commit e16f7e1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 23 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,4 @@ __TEST__
/playwright-report/
/blob-report/
/playwright/.cache/
/e2e-report/
_examples
/e2e-report/
4 changes: 0 additions & 4 deletions programs/cli/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,3 @@ interface ImportMetaEnv {
interface ImportMeta {
readonly env: ImportMetaEnv
}

interface Window {
__EXTENSION_SHADOW_ROOT__: ShadowRoot
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {isUsingTailwind} from './css-tools/tailwind'
import {isUsingSass} from './css-tools/sass'
import {isUsingLess} from './css-tools/less'
import {maybeUsePostCss} from './css-tools/postcss'
// import {isUsingVue} from '../plugin-js-frameworks/js-tools/vue'

export interface StyleLoaderOptions {
mode: DevOptions['mode']
Expand Down
2 changes: 1 addition & 1 deletion programs/develop/webpack/plugin-css/css-tools/less.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function maybeUseLess(
test: /\.less$/,
oneOf: [
{
resourceQuery: /inline_style/,
resourceQuery: /is_content_css_import=true/,
use: await commonStyleLoaders(projectPath, {
loader: 'less-loader',
mode,
Expand Down
4 changes: 2 additions & 2 deletions programs/develop/webpack/plugin-css/css-tools/sass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function maybeUseSass(
exclude: /\.module\.(s(a|c)ss)$/,
oneOf: [
{
resourceQuery: /inline_style/,
resourceQuery: /is_content_css_import=true/,
use: await commonStyleLoaders(projectPath, {
loader: 'sass-loader',
mode,
Expand All @@ -90,7 +90,7 @@ export async function maybeUseSass(
test: /\.module\.(s(a|c)ss)$/,
oneOf: [
{
resourceQuery: /inline_style/,
resourceQuery: /is_content_css_import=true/,
use: await commonStyleLoaders(projectPath, {
loader: 'sass-loader',
mode,
Expand Down
14 changes: 0 additions & 14 deletions programs/develop/webpack/plugin-css/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ export class CssPlugin {
test: /\.css$/,
exclude: /\.module\.css$/,
oneOf: [
{
resourceQuery: /inline_style/,
use: await commonStyleLoaders(projectPath, {
mode: mode as 'development' | 'production',
useMiniCssExtractPlugin: false
})
},
{
use: await commonStyleLoaders(projectPath, {
mode: mode as 'development' | 'production',
Expand All @@ -54,13 +47,6 @@ export class CssPlugin {
{
test: /\.module\.css$/,
oneOf: [
{
resourceQuery: /inline_style/,
use: await commonStyleLoaders(projectPath, {
mode: mode as 'development' | 'production',
useMiniCssExtractPlugin: false
})
},
{
use: await commonStyleLoaders(projectPath, {
mode: mode as 'development' | 'production',
Expand Down

0 comments on commit e16f7e1

Please sign in to comment.