GithubHelp home page GithubHelp logo

vite-vue2-bug's Introduction

vite-vue2-bug

Run app with

npm run dev

Navigate to http://localhost:3000/src/App.vue?vue&type=style&index=0&lang.module.css

Note that the response is valid javascript i.e

import { createHotContext as __vite__createHotContext } from "/@vite/client";import.meta.hot = __vite__createHotContext("/src/App.vue?vue&type=style&index=0&lang.module.css");import { updateStyle as __vite__updateStyle, removeStyle as __vite__removeStyle } from "/@vite/client"
const __vite__id = "/Users/skalidindi/oss/vite-vue2-bug/src/App.vue?vue&type=style&index=0&lang.module.css"
const __vite__css = "\n.some-class {\n  color: red;\n}\n._main_3nzk9_6 {\n  background-color: #f0f0f0;\n}\n"
__vite__updateStyle(__vite__id, __vite__css)
export const main = "_main_3nzk9_6";
export default {
	main: main
};

import.meta.hot.prune(() => __vite__removeStyle(__vite__id))

However, switch the order of query params in the url such as http://localhost:3000/src/App.vue?vue&type=style&lang.module.css&index=0

and the response is css

This behavior is not consistent

vite-vue2-bug's People

Contributors

skalidindi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.